You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

103 lines
2.0 KiB

import request from '@/utils/request'
const admin = '/back/admin'
const role = '/back/role'
/**
* 查询账户列表
*/
export function GET_LIST(params) {
return request({
url: `${admin}/list`,
method: 'post',
data: params
}).then(res => res.data)
}
/**
* 重置管理员密码
*/
export function RESET_PASSWORD(params) {
return request({
url: `${admin}/resetPassword`,
method: 'post',
data: params
}).then(res => res.data)
}
/**
* 删除管理员账户
*/
export function DELETE_ADMIN(params) {
return request({
url: `${admin}/delete`,
method: 'post',
data: params
}).then(res => res.data)
}
/**
* 修改管理员账户信息
*/
export function UPDATE_ADMIN(params) {
return request({
url: `${admin}/update`,
method: 'post',
data: params
}).then(res => res.data)
}
/**
* 添加管理员账户信息
*/
export function ADD_ADMIN(params) {
return request({
url: `${admin}/add`,
method: 'post',
data: params
}).then(res => res.data)
}
/**
* 账户权限管理中,获取所有角色列表
*/
export function GET_ROLE_ALL(params) {
return request({
url: `${role}/all`,
method: 'post',
data: params
}).then(res => res.data)
}
/**
* 角色权限管理中,获取所有角色列表
*/
export function GET_ROLE_LIST(params) {
return request({
url: `${role}/list`,
method: 'post',
data: params
}).then(res => res.data)
}
/**
* 添加角色
*/
export function ADD_ROLE(params) {
return request({
url: `${role}/add`,
method: 'post',
data: params
}).then(res => res.data)
}
/**
* 删除角色
*/
export function DELETE_ROLE(params) {
return request({
url: `${role}/delete`,
method: 'post',
data: params
}).then(res => res.data)
}