You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
2.5 KiB

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
  1. declare namespace System {
  2. interface SystemStore {
  3. systemStatus: SystemStatus
  4. systemList: Socket.NotificationData[]
  5. streamVisible: boolean
  6. isDebug: boolean
  7. menuExpand: boolean
  8. systemUser: SystemUser
  9. loginForm: LoginForm
  10. systemLogList: SystemLog[]
  11. currentTime: string
  12. }
  13. interface SystemLog {
  14. cmdName: string
  15. status: 'start' | 'success' | 'fail'
  16. time: string
  17. }
  18. interface SystemStatus {
  19. virtual: boolean
  20. initComplete: boolean
  21. selfTest: boolean
  22. emergencyStop: boolean
  23. currentUser: User.User | null
  24. currentTasks: Task.Task[] | null
  25. doorModule: {
  26. open: boolean
  27. }
  28. transferModule: {
  29. idle: boolean
  30. trayStatus: boolean
  31. }
  32. solutionModule: {
  33. idle: boolean
  34. feedAreaTrayStatus: boolean
  35. pumping: boolean
  36. valveState: {
  37. state: number
  38. }
  39. solutionContainer: SolutionContainer[]
  40. }
  41. heatModule: HeatArea[]
  42. trays?: Tray[]
  43. }
  44. interface Tray {
  45. uuid: string
  46. heatModuleCode: 'heat_module_01' | 'heat_module_02' | 'heat_module_03' | 'heat_module_04' | 'heat_module_05' | 'heat_module_06'
  47. inFeedArea: boolean
  48. inSolutionPositon: boolean
  49. inHeatModule: boolean
  50. tubes: Tubes[]
  51. crafts?: {
  52. state: 'READY' | 'RUNNING' | 'PAUSED' | 'STOPPED' | 'ERROR' | 'FINISHED'
  53. craft?: CraftTypes.Craft
  54. currentIndex?: number
  55. }
  56. }
  57. interface Tubes {
  58. columnNum: number
  59. addSolution: boolean
  60. exists: boolean
  61. }
  62. interface HeatArea {
  63. moduleCode: 'heat_module_01' | 'heat_module_02' | 'heat_module_03' | 'heat_module_04'
  64. trayStatus: boolean
  65. enable: boolean
  66. heatingType: 'heating' | 'drying' | 'annealing' | 'stop'
  67. fanOpen: boolean
  68. dryTemperature?: number
  69. annealTemperature?: number
  70. heatTemperature?: number
  71. targetTemperature?: number
  72. temperature: number
  73. targetTime?: number
  74. startHeatTime?: number
  75. }
  76. interface SolutionContainer {
  77. containerCode: number
  78. type: 'solution' | 'neutralization'
  79. empty: boolean
  80. full: boolean
  81. filledSolution: boolean
  82. }
  83. interface CmdControlParams<T> {
  84. commandId: string
  85. command: string
  86. params: T
  87. }
  88. interface SystemUser {
  89. username: string
  90. }
  91. interface LoginForm {
  92. username: string
  93. password: string
  94. }
  95. interface ApiResponse<T> {
  96. code: string
  97. data: T
  98. msg: string
  99. }
  100. interface Page {
  101. pageNum: number
  102. pageSize: number
  103. }
  104. interface PageResponse<T> {
  105. list: T[]
  106. total: number
  107. }
  108. }