systemModel.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 SaveRoleParams = {
  11. deptId: string;
  12. deptIdList: (number | string)[];
  13. deptName: string;
  14. menuIdList: number[];
  15. roleName: string;
  16. };
  17. export type RolePageParams = BasicPageParams & RoleParams;
  18. export type CheckUserParams = {
  19. phone?: string;
  20. };
  21. export type DeptParams = {
  22. deptName?: string;
  23. status?: string;
  24. };
  25. export type MenuParams = {
  26. icon: string;
  27. name: string;
  28. orderNum: number;
  29. parentId: number;
  30. parentName: string;
  31. perms: string;
  32. status: number;
  33. type: number;
  34. url: string;
  35. };
  36. export interface AccountListItem {
  37. id: string;
  38. account: string;
  39. email: string;
  40. nickname: string;
  41. role: number;
  42. createTime: string;
  43. remark: string;
  44. status: number;
  45. }
  46. export interface DeptListItem {
  47. id: string;
  48. orderNo: string;
  49. createTime: string;
  50. remark: string;
  51. status: number;
  52. }
  53. export interface MenuListItem {
  54. menuId: string;
  55. children?: MenuListItem[];
  56. icon: string;
  57. name: string;
  58. orderNum: number;
  59. parentId: number;
  60. parentName: string;
  61. perms: string;
  62. status: number;
  63. type: number;
  64. url: string;
  65. }
  66. export interface RoleListItem {
  67. id: string;
  68. roleName: string;
  69. roleValue: string;
  70. status: number;
  71. orderNo: string;
  72. createTime: string;
  73. }
  74. /**
  75. * @description: Request list return value
  76. */
  77. export type AccountListGetResultModel = BasicFetchResult<AccountListItem>;
  78. export type DeptListGetResultModel = BasicFetchResult<DeptListItem>;
  79. export type MenuListGetResultModel = BasicFetchResult<MenuListItem>;
  80. export type RolePageListGetResultModel = BasicFetchResult<RoleListItem>;
  81. export type RoleListGetResultModel = RoleListItem[];