// 重复校验
import { deleteAction, getAction } from '@/api/manage'

export const duplicateCheck = params => getAction('/sys/duplicate/check', params)

export const queryIdTree = params => getAction('/sys/sysDepart/queryIdTree', params)

// 查询部门树
export const queryDepartTreeList = params => getAction('/sys/sysDepart/queryTreeList', params)

// 条件查询部门树
export const searchByKeywords = params => getAction('/sys/sysDepart/searchBy', params)

// 根据ID删除部门
export const deleteByDepartId = params => deleteAction('/sys/sysDepart/delete', params)
