export interface formParamsType {
  roleId?: number | null;
  roleType?: number | null;
  roleName: string;
  roleCode: string;
  remark: string;
  permissions: number[];
  permissionKeys: number[];
}

export interface userFormParamsType {
  roleId?: number | null;
  roleName: string;
  roleCode: string;
  remark: string;
  permissions?: number[];
  permissionList: { workshopCode: string; permissionId: any }[];
  permissionKeys?: number[];
}

export enum RoleTypeEnum {
  SUPER = 1,
  ADMIN = 2,
  USER = 3,
}

export const roleTypeNames = {
  [RoleTypeEnum.SUPER]: '超级管理员',
  [RoleTypeEnum.ADMIN]: '管理员',
  [RoleTypeEnum.USER]: '用户',
};
