添加标签接口,优化笔记管理界面和逻辑

This commit is contained in:
2024-12-20 15:51:37 +08:00
parent 8b7860e3ef
commit e639694427
5 changed files with 45 additions and 26 deletions
+2
View File
@@ -6,6 +6,8 @@ export interface ArticleVO {
*/
id: string | number;
tagId_copy: string[] | number[];
region?: string;
regionCode?: string;
/**
*
*/
+12
View File
@@ -15,6 +15,18 @@ export const listTag = (query?: TagQuery): AxiosPromise<TagVO[]> => {
params: query
});
};
/**
* 获取所有标签
* @param query
* @returns
*/
export const tagAll = (query?: TagQuery): AxiosPromise<TagVO[]> => {
return request({
url: '/manage/tag/all',
method: 'get',
params: query
});
};
/**
* 查询标签详细