| 1234567891011121314 |
- import { ApiInstance } from '../type'
- interface roleData {
- name: string;
- desc: string;
- system: string,
- permsId: number[],
- perms: string[]
- }
- const roleApi = (axiosInstance: ApiInstance) => ({
- // 新增角色
- roleAdd: (data: roleData) => axiosInstance.post('userRole/roleAdd', data, {}),
- })
- export default roleApi
|