消毒机设备
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.

33 lines
1.1 KiB

  1. const baseUrl = '/api/ores'
  2. export const oreRoutes = (app) => {
  3. app.get(`${baseUrl}/list`, (req, res) => {
  4. const mockResponse = {
  5. code: '0',
  6. data: {
  7. list: [
  8. {
  9. id: 1,
  10. oresName: '金矿石2',
  11. createTime: '2025-04-27 15:54:32',
  12. updateTime: '2025-04-27 15:54:32',
  13. craftsList: [
  14. {
  15. id: 1,
  16. createTime: '2025-04-27 15:55:13',
  17. updateTime: '2025-04-27 15:55:13',
  18. name: '工艺2',
  19. steps: '[{"method":"upTray"},{"method":"downTray"},{"method":"addLiquid","params":{"tubeSolList":[{"tubeNum":15,"addLiquidList":[{"solId":15,"volume":20}]}]}},{"method":"moveToSol"},{"method":"moveToHeat"},{"method":"shaking","params":{"second":6}},{"method":"startHeating","params":{"temperature":200}},{"method":"stopHeating"},{"method":"takePhoto"},{"method":"delay","params":{"second":2}}]',
  20. oresId: 1,
  21. },
  22. ],
  23. },
  24. ],
  25. total: 1,
  26. },
  27. msg: '成功',
  28. }
  29. setTimeout(() => {
  30. res.json(mockResponse)
  31. }, 1000)
  32. })
  33. }