27 lines
647 B
TypeScript
27 lines
647 B
TypeScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 部门列表
|
||
|
export function deptLists(params?: any) {
|
||
|
return request.get({ url: '/system/dept/list', params })
|
||
|
}
|
||
|
|
||
|
// 添加部门
|
||
|
export function deptAdd(params: any) {
|
||
|
return request.post({ url: '/system/dept/add', params })
|
||
|
}
|
||
|
|
||
|
// 编辑部门
|
||
|
export function deptEdit(params: any) {
|
||
|
return request.post({ url: '/system/dept/edit', params })
|
||
|
}
|
||
|
|
||
|
// 删除部门
|
||
|
export function deptDelete(params: any) {
|
||
|
return request.post({ url: '/system/dept/del', params })
|
||
|
}
|
||
|
|
||
|
// 部门详情
|
||
|
export function deptDetail(params?: any) {
|
||
|
return request.get({ url: '/system/dept/detail', params })
|
||
|
}
|