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

51 lines
1.0 KiB
JavaScript

import axios from "../../utils/axios";
// 获取列表
export function authAdminList(query) {
return axios({
url: "/admin/auth/admin/index",
method: "get",
params: query
});
}
// 获取客户角色列表
export function authCustomerRoles(query) {
return axios({
url: "/admin/auth/admin/customerRoles",
method: "get",
params: query
});
}
// 保存
export function authAdminSave(data, formName, method = "post") {
let url =
formName === "add"
? "/admin/auth/admin/save"
: "/admin/auth/admin/edit";
return axios({
url: url,
method: method,
data: data
});
}
// 删除管理员
export function authAdminDelete(data) {
return axios({
url: "/admin/auth/admin/delete",
method: "post",
data: data
});
}
//查询后台管理用户角色
export function getAdminRoles(query) {
return axios({
url: "/auth/admin/admin/getAdminRoles",
method: "get",
params: query
});
}