systemModel.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 TestParams = {
  11. testName?: string;
  12. };
  13. export type RolePageParams = BasicPageParams & RoleParams;
  14. export type TestPageParams = BasicPageParams & TestParams;
  15. export type UserPageParams = BasicPageParams & UserParams;
  16. export type DeptParams = {
  17. deptName?: string;
  18. status?: string;
  19. };
  20. export type UserParams = {
  21. username?: string;
  22. };
  23. export type MenuParams = {
  24. menuName?: string;
  25. status?: string;
  26. };
  27. export interface AccountListItem {
  28. id: string;
  29. account: string;
  30. email: string;
  31. nickname: string;
  32. role: number;
  33. createTime: string;
  34. remark: string;
  35. status: number;
  36. }
  37. export interface DeptListItem {
  38. id: string;
  39. orderNo: string;
  40. createTime: string;
  41. remark: string;
  42. status: number;
  43. }
  44. export interface MenuListItem {
  45. id: string;
  46. orderNo: string;
  47. createTime: string;
  48. status: number;
  49. icon: string;
  50. component: string;
  51. permission: string;
  52. }
  53. export interface RoleListItem {
  54. id: string;
  55. roleName: string;
  56. roleValue: string;
  57. status: number;
  58. orderNo: string;
  59. createTime: string;
  60. }
  61. export interface TestListItem {
  62. id: string;
  63. testName: string;
  64. testValue: string;
  65. createTime: string;
  66. }
  67. export interface UserListItem {
  68. id: string;
  69. username: string;
  70. password: string;
  71. realname: string;
  72. }
  73. /**
  74. * @description: Request list return value
  75. */
  76. export type AccountListGetResultModel = BasicFetchResult<AccountListItem>;
  77. export type DeptListGetResultModel = BasicFetchResult<DeptListItem>;
  78. export type MenuListGetResultModel = BasicFetchResult<MenuListItem>;
  79. export type RolePageListGetResultModel = BasicFetchResult<RoleListItem>;
  80. export type RoleListGetResultModel = RoleListItem[];
  81. export type TestListGetResultModel = TestListItem[];
  82. export type UserListGetResultModel = UserListItem[];