// 条件查询部门树
import { getAction, postAction, putAction } from '@/api/manage'

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

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

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

//用户管理
export const addUser = params => postAction('/sys/user/add', params)
export const editUser = params => putAction('/sys/user/edit', params)
export const queryAll = params => getAction('/sys/role/queryall', params)
export const queryUserRole = params => getAction('/sys/user/queryUserRole', params)
export const uploadBase64 = data => postAction('/sys/common/uploadBase64', data)
// 重复校验
export const duplicateCheck = params => getAction('/sys/duplicate/check', params)
