import { ResPage, User } from "@/api/interface/index";
|
import http from "@/api";
|
|
/**
|
* @name 部门管理模块
|
*/
|
// 获取部门列表信息
|
export const getDepartmentList = (params: User.ReqUserParams) => {
|
return http.post<ResPage<User.ResUserList>>(`/Department/FindDepartmentInfo`, params);
|
};
|
|
// 新增部门
|
export const addDepartment = (params: { id: string }) => {
|
return http.post(`/Department/add`, params);
|
};
|
|
// 编辑部门
|
export const editDepartment = (params: { id: string }) => {
|
return http.post(`/Department/update`, params);
|
};
|
|
// 删除部门
|
export const deleteDepartment = (params: { id: string[] }) => {
|
return http.post(`/Department/delete`, params);
|
};
|
|
// 部门下拉列表
|
export const DepartmentAutocomplete = (params: { companyid: any }) => {
|
return http.post(`/Department/DepartmentAutocomplete`, params);
|
};
|
|
// 获取部门详细信息
|
export const FindOneDepartMent = (params: User.ReqUserParams) => {
|
return http.post<ResPage<User.ResUserList>>(`/Department/FindOneDepartMent`, params);
|
};
|