index.uts 658 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. */
  3. import { request } from '../../utils/request'
  4. /**
  5. * 获取通知消息
  6. */
  7. export const getMyNotify = (userId: string): Promise<any> => {
  8. let url = `/mobile/notify/${userId}`
  9. return request({
  10. url: url,
  11. method: 'GET'
  12. })
  13. }
  14. /**
  15. * 注册设备
  16. */
  17. export const registerServer = (cid: string): Promise<any> => {
  18. let url = `/push/register/${cid}`
  19. return request({
  20. url: url,
  21. method: 'GET',
  22. })
  23. }
  24. /**
  25. * 查询首页工单统计数据
  26. */
  27. export const selectHomePageData = (): Promise<any> => {
  28. return request({
  29. url: '/gxt/repairOrder/selectHomePageData',
  30. method: 'GET'
  31. })
  32. }