| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- import { request } from '@umijs/max'
- /**
- * @description 获取部门列表
- */
- export async function getDepartMentList(parentId) {
- return request('/department/list', {
- params: { parentId }
- })
- }
- /**
- * @description 新增部门
- */
- export async function addDepartment(payload) {
- return request('/department/add', { method: 'POST', data: payload })
- }
- /**
- * @description 删除部门
- */
- export async function delDepartment(id) {
- return request('/department/delete', { method: 'POST', data: { id } })
- }
- /** 获取部门-员工列表 */
- export async function queryDepartmentStaffList() {
- return request('/department/staff')
- }
- /** 获取通讯录人员列表 */
- export async function queryStaffContacts(payload) {
- const data = await request('/staff/listV2', {
- params: { ...payload }
- })
- return data
- }
- // export async function queryStaffContacts() {
- // return request('/staff/listV2')
- // }
|