systemModel.ts 1.3 KB

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