Admin.UI/src/api/admin/role.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* 角色服务
* @module @/api/admin/role
*/
import request from '@/utils/request'
import scope from './scope'
const apiPrefix = `${process.env.VUE_APP_BASE_API}/${scope}/role/`
/**
* 查询角色
*/
export const get = (params, config = {}) => {
return request.get(apiPrefix + 'get', { params: params, ...config })
}
/**
* 查询角色列表
*/
export const getList = (params, config = {}) => {
return request.get(apiPrefix + 'get-list', { params: params, ...config })
}
/**
* 查询角色列表
*/
export const getPage = (params, config = {}) => {
return request.post(apiPrefix + 'get-page', params, config)
}
/**
* 查询角色用户列表
*/
export const getRoleUserList = (params, config = {}) => {
return request.get(apiPrefix + 'get-role-user-list', { params: params, ...config })
}
/**
* 新增角色用户
*/
export const addRoleUser = (params, config = {}) => {
return request.post(apiPrefix + 'add-role-user', params, config)
}
/**
* 移除角色用户
*/
export const removeRoleUser = (params, config = {}) => {
return request.post(apiPrefix + 'remove-role-user', params, config)
}
/**
* role-add
*/
export const add = (params, config = {}) => {
return request.post(apiPrefix + 'add', params, config)
}
/**
* 修改
后面还有 47 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
