systemModel.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
  2. export type AccountParams = BasicPageParams & {
  3. account?: string;
  4. nickname?: string;
  5. };
  6. export type RoleParams = {
  7. roleName?: string;
  8. status?: string;
  9. };
  10. export type RolePageParams = BasicPageParams & RoleParams;
  11. export type DeptParams = {
  12. deptName?: string;
  13. status?: string;
  14. };
  15. export type MenuParams = {
  16. menuName?: string;
  17. status?: string;
  18. };
  19. export interface AccountListItem {
  20. id: string;
  21. account: string;
  22. email: string;
  23. nickname: string;
  24. role: number;
  25. createTime: string;
  26. remark: string;
  27. status: number;
  28. }
  29. export interface DeptListItem {
  30. id: string;
  31. orderNo: string;
  32. createTime: string;
  33. remark: string;
  34. status: number;
  35. }
  36. export interface MenuListItem {
  37. id: string;
  38. orderNo: string;
  39. createTime: string;
  40. status: number;
  41. icon: string;
  42. component: string;
  43. permission: string;
  44. }
  45. export interface RoleListItem {
  46. id: string;
  47. roleName: string;
  48. roleValue: string;
  49. status: number;
  50. orderNo: string;
  51. createTime: string;
  52. }
  53. /**
  54. * @description: Request list return value
  55. */
  56. export type AccountListGetResultModel = BasicFetchResult<AccountListItem>;
  57. export type DeptListGetResultModel = BasicFetchResult<DeptListItem>;
  58. export type MenuListGetResultModel = BasicFetchResult<MenuListItem>;
  59. export type RolePageListGetResultModel = BasicFetchResult<RoleListItem>;
  60. export type RoleListGetResultModel = RoleListItem[];