wms-antdvue/.svn/pristine/66/66b8662b22d0fbd4f5f7fecf623e4769a4d3eb79.svn-base
2024-11-07 16:33:03 +08:00

66 lines
1.0 KiB
Plaintext

import { http } from '@/utils/http/axios';
/**
* @description: 列表
*/
export function getTagList(params?) {
return http.request({
url: '/admin/tag/page',
method: 'GET',
params,
});
}
/**
* @description: 根据ID获取详情
*/
export function getTagDetail(tagId) {
return http.request({
url: '/admin/tag/detail/' + tagId,
method: 'get',
});
}
/**
* @description: 添加
*/
export function tagAdd(data: any) {
return http.request({
url: '/admin/tag/add',
method: 'POST',
data,
});
}
/**
* @description: 更新
*/
export function tagUpdate(data: any) {
return http.request({
url: '/admin/tag/update',
method: 'PUT',
data,
});
}
/**
* @description: 删除
*/
export function tagDelete(tagId) {
return http.request({
url: '/admin/tag/delete/' + tagId,
method: 'DELETE',
});
}
/**
* @description: 批量删除
*/
export function tagBatchDelete(data: any) {
return http.request({
url: '/admin/tag/batchDelete',
method: 'DELETE',
data,
});
}