index.uts 456 B

12345678910111213141516171819202122232425
  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. }