projectModel.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'
  2. /**
  3. * @description: Request list interface parameters
  4. */
  5. export type ProjectListParams = BasicPageParams & { search?: string; insideCategoryId?: string }
  6. export interface ProjectListItem {
  7. id: string
  8. code: string
  9. name: string
  10. userId: string
  11. userAccount: string
  12. categoryId: string
  13. category: string
  14. staffId: string
  15. staffName: string
  16. staffQq: string
  17. staffPhone: string
  18. staffTelephone: string
  19. createTime: string
  20. createName: string
  21. createCategory: string
  22. insideCategoryId: string
  23. insideCategory: string
  24. remark: string
  25. status: number
  26. staffIdEncrypted: string
  27. }
  28. export type ProjectUpdateOrCreateParams = {
  29. id: string
  30. name: string
  31. insideCategoryId: string
  32. insideCategory: string
  33. categoryId: string
  34. category: string
  35. staffId: string
  36. staffName: string
  37. remark: string
  38. status: string
  39. }
  40. export type ProjectAccountParams = {
  41. id?: string
  42. projectId: string
  43. }
  44. export type ProjectAccountItem = {
  45. id: string
  46. projectId: string
  47. bidsectionId: string
  48. account: string
  49. password: string
  50. name: string
  51. company: string
  52. position: string
  53. role: string
  54. mobile: string
  55. telephone: string
  56. isAdmin: number
  57. accountGroup: number
  58. enable: number
  59. contractPermission: string
  60. qualityPermission: string
  61. safePermission: string
  62. }
  63. export type AddOrUpdateProjectAccountParams = {
  64. id?: string
  65. projectId: string
  66. account: string
  67. password?: string
  68. role: string
  69. name: string
  70. company: string
  71. position: string
  72. mobile: string
  73. telephone: string
  74. isAdmin: number
  75. }
  76. /**
  77. * @description: Request list return value
  78. */
  79. export type ProjectListGetResultModel = BasicFetchResult<ProjectListItem[]>
  80. export type ProjectAccountListResultModal = ProjectAccountItem[]