wms-antdvue/.svn/pristine/60/609e582b9d55f81293944086c08a3a1c6587d7e8.svn-base
2024-11-07 16:33:03 +08:00

55 lines
908 B
Plaintext

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