import { getAction, postAction, putAction } from '@/api/manage'

// 冻结账户
export const frozenBatch = data => putAction('/sys/user/frozenBatch', data)

// 重复校验
export const duplicateCheck = params => getAction('/sys/duplicate/check', params)

//用户管理
export const addUser = params => postAction('/sys/user/add', params)
export const editUser = params => putAction('/sys/user/edit', params)
export const queryUserRole = params => getAction('/sys/user/queryUserRole', params)
//改变密码
export const changPassword = params => putAction('/sys/user/changPassword', params)
//用户文件授权
// 查询用户历史表验证最近三次密码
export const checkHistoryPassword = params => postAction('/sys/sysUserHistoryPassword/checkHistoryPassword', params)
export const queryAll = params => getAction('/sys/role/queryall', params)
export const uploadBase64 = data => postAction('/sys/common/uploadBase64', data)
