chore: update tag service

This commit is contained in:
Steven
2023-10-03 09:39:39 +08:00
parent 69d575fd5b
commit 1542f3172a
8 changed files with 703 additions and 79 deletions

View File

@ -155,26 +155,10 @@ export function deleteResourceById(id: ResourceId) {
return axios.delete(`/api/v1/resource/${id}`);
}
export function getTagList() {
return axios.get<string[]>(`/api/v1/tag`);
}
export function getTagSuggestionList() {
return axios.get<string[]>(`/api/v1/tag/suggestion`);
}
export function upsertTag(tagName: string) {
return axios.post<string>(`/api/v1/tag`, {
name: tagName,
});
}
export function deleteTag(tagName: string) {
return axios.post(`/api/v1/tag/delete`, {
name: tagName,
});
}
export function getStorageList() {
return axios.get<ObjectStorage[]>(`/api/v1/storage`);
}