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

31 lines
646 B

  1. const baseUrl = '/api/device-point'
  2. export const pointRoutes = (app) => {
  3. app.get(`${baseUrl}/list`, (req, res) => {
  4. const mockResponse = {
  5. code: '0',
  6. data: [
  7. {
  8. id: 2,
  9. name: '托盘夹取位置',
  10. code: 'trayPick',
  11. type: '直线距离',
  12. position: null,
  13. },
  14. ],
  15. msg: '成功',
  16. }
  17. setTimeout(() => {
  18. res.json(mockResponse)
  19. }, 1000)
  20. })
  21. app.put(`${baseUrl}`, (req, res) => {
  22. const mockResponse = {
  23. code: '0',
  24. data: null,
  25. msg: '成功',
  26. }
  27. setTimeout(() => {
  28. res.json(mockResponse)
  29. }, 2000)
  30. })
  31. }