import axios from '@/utils/request';
|
|
// 列表
|
export const getList = (data) => {
|
return axios.post('/system/user/list', { ...data })
|
}
|
|
// 添加
|
export const add = (data) => {
|
return axios.post('/system/user/add', { ...data })
|
}
|
|
// 编辑
|
export const edit = (data) => {
|
return axios.post('/system/user/edit', { ...data })
|
}
|
|
// 删除
|
export const delDept = (id) => {
|
return axios.delete(`/system/user/deleteById/${id}`)
|
}
|
|
// 部门
|
export const deptList = (data) => {
|
return axios.post(`/t-dept/listAll`)
|
}
|
|
export const roleList = () => {
|
return axios.post(`/system/role/listNotPage`)
|
}
|
|
export const changeStatus = (data) => {
|
return axios.put(`/system/user/changeStatus`, { ...data })
|
}
|
|
export const updatePwd = (data) => {
|
return axios.post(`/system/user/resetPwd`, { ...data })
|
}
|
export const typeList = () => {
|
return axios.get(`/t-business-dept/list/type?type=1`,)
|
}
|