role.ts 327 B

1234567891011121314
  1. import { ApiInstance } from '../type'
  2. interface roleData {
  3. name: string;
  4. desc: string;
  5. system: string,
  6. permsId: number[],
  7. perms: string[]
  8. }
  9. const roleApi = (axiosInstance: ApiInstance) => ({
  10. // 新增角色
  11. roleAdd: (data: roleData) => axiosInstance.post('userRole/roleAdd', data, {}),
  12. })
  13. export default roleApi