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

55 lines
938 B
Plaintext

import { http } from '@/utils/http/axios';
/**
* @description: 列表
*/
export function getCategoryList(params?) {
return http.request({
url: '/admin/category/list',
method: 'GET',
params,
});
}
/**
* @description: 根据ID获取详情
*/
export function getCategoryDetail(categoryId) {
return http.request({
url: '/admin/category/detail/' + categoryId,
method: 'get',
});
}
/**
* @description: 添加
*/
export function categoryAdd(data: any) {
return http.request({
url: '/admin/category/add',
method: 'POST',
data,
});
}
/**
* @description: 更新
*/
export function categoryUpdate(data: any) {
return http.request({
url: '/admin/category/update',
method: 'PUT',
data,
});
}
/**
* @description: 删除部门
*/
export function categoryDelete(categoryId) {
return http.request({
url: '/admin/category/delete/' + categoryId,
method: 'DELETE',
});
}