SKRequestURL.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. //
  2. // ChineseMedicine
  3. //
  4. // Created by 刘振兴 on 2023/1/4.
  5. //
  6. #ifndef EREQUESTURL_h
  7. #define EREQUESTURL_h
  8. //登录
  9. #define URL_LOGIN @"/api/v2/userctx/user/sign-in"
  10. #define URL_REGISTER @"/api/v2/userctx/user/sign-up"
  11. #define URL_ACCOUNT_DELETE @"/api/v2/userctx/user/unregister"
  12. #define URL_PWD_MODIFY @"/api/v2/userctx/user/reset-password"
  13. #define URL_PWD_FORGET_PHONE @"/api/v2/userctx/user/retrieve-password"
  14. #define URL_PWD_FORGET_EMAIL @"/api/v2/userctx/user/update-password"
  15. //验证码
  16. #define URL_SEND_CODE @"/api/v2/userctx/user/sms-code"
  17. #define URL_SEND_CODE_EMAIL @"/user/api/entrance/captcha/email"
  18. //APNS
  19. #define URL_FCM_SUBSCRIBE @"/api/v2/gatewayctx/publish/subscribe"
  20. #define URL_FCM_UNSUBSCRIBE @"/api/v2/gatewayctx/publish/unsubscribe"
  21. //绑定小孩
  22. #define URL_CHILD_GET @"/api/v2/userctx/user/child/get"
  23. #define URL_CHILD_ADD @"/api/v2/userctx/user/child/create"
  24. #define URL_CHILD_UPDATE @"/api/v2/userctx/user/child/update"
  25. #define URL_CHILD_DELETE @"/api/v2/userctx/user/child/delete"
  26. //绑定设备
  27. #define URL_DEVICE_ADD @"/api/v2/userctx/user/child/device/bind"
  28. #define URL_DEVICE_DELETE @"/api/v2/userctx/user/child/device/unbind"
  29. //Chat
  30. #define URL_SESSION_LIST @"/api/v2/messagectx/history/session"
  31. #define URL_SESSION_RECORD @"/api/v2/messagectx/history/unread"
  32. #define URL_SESSION_SEND_TEXT @"/api/v2/messagectx/messaging/publish/chat/text"
  33. #define URL_SESSION_SEND_VIDEO @"/api/v2/messagectx/messaging/publish/chat/video"
  34. #define URL_SESSION_SEND_VOICE @"/api/v2/messagectx/messaging/publish/chat/voice"
  35. #define URL_SESSION_SEND_EMOJI @"/api/v2/messagectx/messaging/publish/chat/emoji"
  36. #define URL_SESSION_SEND_IMAGE @"/api/v2/messagectx/messaging/publish/chat/image"
  37. //联系人
  38. #define URL_CONTACT_GET @"/api/v2/userctx/user/child/contacts/get"
  39. #define URL_CONTACT_ADD @"/api/v2/userctx/user/child/contacts/create"
  40. #define URL_CONTACT_UPDATE @"/api/v2/userctx/user/child/contacts/update"
  41. #define URL_CONTACT_DELETE @"/api/v2/userctx/user/child/contacts/delete"
  42. //拦截陌生人
  43. #define URL_STRANGER_GET @"/api/v2/userctx/user/child/block-unknown-call/get"
  44. #define URL_STRANGER_UPDATE @"/api/v2/userctx/user/child/block-unknown-call/toggle"
  45. //闹钟
  46. #define URL_ALARM_CLOCK_GET @"/api/v2/userctx/user/alarm-clock/getall"
  47. #define URL_ALARM_CLOCK_ADD @"/api/v2/userctx/user/alarm-clock/create"
  48. #define URL_ALARM_CLOCK_UPDATE @"/api/v2/userctx/user/alarm-clock/update"
  49. #define URL_ALARM_CLOCK_DELETE @"/api/v2/userctx/user/alarm-clock/delete"
  50. //上课禁用
  51. #define URL_SCHOOL_TIME_GET @"/api/v2/userctx/user/child/school-disable/getall"
  52. #define URL_SCHOOL_TIME_ADD @"/api/v2/userctx/user/child/school-disable/create"
  53. #define URL_SCHOOL_TIME_UPDATE @"/api/v2/userctx/user/child/school-disable/update"
  54. #define URL_SCHOOL_TIME_DELETE @"/api/v2/userctx/user/child/school-disable/delete"
  55. //实时定位
  56. #define URL_LOCATION @"/api/v2/locatectx/location/ask"
  57. //历史轨迹
  58. #define URL_HISTORY_PATH @"/api/v2/locatectx/location/trajectory"
  59. //电子围栏
  60. #define URL_FENCE_GET @"/api/v2/locatectx/fence/get"
  61. #define URL_FENCE_CREATE @"/api/v2/locatectx/fence/create"
  62. #define URL_FENCE_UPDATE @"/api/v2/locatectx/fence/update"
  63. #define URL_FENCE_DELETE @"/api/v2/locatectx/fence/delete"
  64. #define URL_FENCE_TOGGLE @"/api/v2/locatectx/fence/total/switch"
  65. //事件
  66. #define URL_EVENT @"/user/api/remind/event"
  67. //短信
  68. #define URL_SMSS @"/locate/api/smss"
  69. #define URL_WIFI @"/locate/api/wifi"
  70. #define URL_ELECTRICITY_MODE @"/Service/V2/watchservice.asmx/SetWatchBatteryModeV2"
  71. #define URL_ONOFF @"/locate/api/onoff"
  72. #define URL_ONOFF_SHUTDOWN @"/api/v2/messagectx/messaging/publish/remote-control/shutdown"
  73. #define URL_ONOFF_REBOOT @"/api/v2/messagectx/messaging/publish/remote-control/reboot"
  74. #define URL_EYE @"/locate/api/eye"
  75. #define URL_FLOW @"/locate/api/flow"
  76. //消息中心
  77. #define URL_PUSH_MESSAGE @"/api/v2/messagectx"
  78. #define URL_SYSTEM_APP @"/locate/api/systemapp"
  79. #define URL_SYSTEM_DEVICE @"/locate/api/systemdevice"
  80. //监听
  81. #define URL_MONITOR @"/locate/api/monitor"
  82. //视频通话
  83. #define URL_VIDEO_DIAL @"/api/v2/messagectx/messaging/publish/video-call/dial"
  84. #define URL_VIDEO_HANGUP @"/api/v2/messagectx/messaging/publish/video-call/hangup"
  85. #define URL_VIDEO_TOKEN @"http://api.w303b.sikey.com.cn/token/generate"
  86. //Resource
  87. #define URL_UPLOAD_FILE @"/api/v2/userctx/file/upload"
  88. #define Operation_Guide_URL @"/view/doc.html"
  89. #define Frequent_Question_URL @"/view/FAQ.html"
  90. #endif