systemModel.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. import { type } from 'os';
  2. import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
  3. export type AccountParams = BasicPageParams & {
  4. account?: string;
  5. nickname?: string;
  6. };
  7. export type DelAccountParams = {
  8. userId: string;
  9. };
  10. export type RoleParams = {
  11. roleName?: string;
  12. status?: string;
  13. };
  14. export type SaveRoleParams = {
  15. deptId: string;
  16. deptIdList: (number | string)[];
  17. deptName: string;
  18. menuIdList: number[];
  19. roleName: string;
  20. };
  21. export type RolePageParams = BasicPageParams & RoleParams;
  22. export type CheckUserParams = {
  23. phone?: string;
  24. };
  25. export type deleteRoleParams = {
  26. id?: number;
  27. };
  28. export type DeptParams = {
  29. deptName?: string;
  30. status?: string;
  31. };
  32. export type RoleIdParams = {
  33. roleId?: number;
  34. }
  35. export type MenuParams = {
  36. icon: string;
  37. name: string;
  38. orderNum: number;
  39. parentId: number;
  40. parentName: string;
  41. perms: string;
  42. status: number;
  43. type: number;
  44. url: string;
  45. };
  46. export interface AccountListItem {
  47. id: string;
  48. account: string;
  49. email: string;
  50. nickname: string;
  51. role: number;
  52. createTime: string;
  53. remark: string;
  54. status: number;
  55. }
  56. export interface DeptListItem {
  57. id: string;
  58. orderNo: string;
  59. createTime: string;
  60. remark: string;
  61. status: number;
  62. }
  63. export interface MenuListItem {
  64. menuId: string;
  65. children?: MenuListItem[];
  66. icon: string;
  67. name: string;
  68. orderNum: number;
  69. parentId: number;
  70. parentName: string;
  71. perms: string;
  72. status: number;
  73. type: number;
  74. url: string;
  75. }
  76. export interface RoleListItem {
  77. id: string;
  78. roleName: string;
  79. roleType: string;
  80. recStatus: string;
  81. createUserId: number;
  82. roleValue: string;
  83. status: number;
  84. orderNo: string;
  85. createTime: string;
  86. description: string;
  87. updateTime: string;
  88. }
  89. /**
  90. * @description: Request list return value
  91. */
  92. export type AccountListGetResultModel = BasicFetchResult<AccountListItem>;
  93. export type DeptListGetResultModel = BasicFetchResult<DeptListItem>;
  94. export type MenuListGetResultModel = BasicPageParams<MenuListItem>;
  95. export type RolePageListGetResultModel = BasicFetchResult<RoleListItem>;
  96. export type RoleListGetResultModel = RoleListItem[];