Commit 4ea05813 authored by chenqikuai's avatar chenqikuai

接口

parent d5b6ddeb
......@@ -78,3 +78,53 @@ export function copyrightUploadFile(file: File) {
trace_id: string;
}>;
}
export function getCopyRight(id: number) {
return $ajax({
type: "get",
url: "/api/copyright",
params: {
id,
},
});
}
export function putCopyRight(id: number) {
return $ajax({
type: "put",
url: "/api/copyright",
params: {
id,
},
});
}
export function postCopyRight(id: number) {
return $ajax({
type: "post",
url: "/api/copyright",
params: {
id,
},
});
}
export function getCopyRights(id: number) {
return $ajax({
type: "get",
url: "/api/copyrights",
params: {
id,
},
});
}
export function deleteCopyRights(ids: number[]) {
return $ajax({
type: "delete",
url: "/api/copyright",
params: {
ids,
},
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment