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

55 lines
900 B
Plaintext

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