UNPKG

advint-user-admin

Version:

开箱即用的后台管理基础用户系统组件

51 lines (50 loc) 1.46 kB
import { UserVO, UserQuery } from '@user-admin/types'; import { AxiosPromise } from 'axios'; import { RoleQuery, RoleVO, RoleDeptTree, IStatusParam } from './types'; export declare const listRole: (query: RoleQuery) => AxiosPromise<RoleVO[]>; /** * 查询角色详细 */ export declare const getRole: (roleId: string | number) => AxiosPromise<RoleVO>; /** * 新增角色 */ export declare const addRole: (query: any) => any; /** * 修改角色 * @param data */ export declare const updateRole: (query: any) => any; /** * 角色数据权限 */ export declare const dataScope: (query: any) => any; /** * 角色状态修改 */ export declare const changeRoleStatus: (query: IStatusParam) => any; /** * 删除角色 */ export declare const delRole: (roleId: Array<string | number> | string | number) => any; /** * 查询角色已授权用户列表 */ export declare const allocatedUserList: (query: UserQuery) => AxiosPromise<UserVO[]>; /** * 查询角色未授权用户列表 */ export declare const unallocatedUserList: (query: UserQuery) => AxiosPromise<UserVO[]>; /** * 取消用户授权角色 */ export declare const authUserCancel: (data: any) => any; /** * 批量取消用户授权角色 */ export declare const authUserCancelAll: (data: any) => any; /** * 授权用户选择 */ export declare const authUserSelectAll: (query: any) => any; export declare const deptTreeByRole: (roleId: string | number) => AxiosPromise<RoleDeptTree>;