newWorkInterface.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. //
  2. // newWorkInterface.h
  3. // 隐私保护
  4. //
  5. // Created by xd h on 2023/10/8.
  6. //
  7. #ifndef newWorkInterface_h
  8. #define newWorkInterface_h
  9. /*1 根据盒子SN号获取对应信息 get请求
  10. 输入参数 sn 贴在盒子上的sn好
  11. 返回数据模型 */
  12. #define getThirdIdBySn @"/box/queryThirdId"
  13. /*2 修改/保存密码 POST请求
  14. 输入参数 sn 贴在盒子上的sn好
  15. 输入参数 password 用户输入的密码
  16. 返回数据模型 */
  17. #define updateCardInfo @"/box/updateCardInfo"
  18. /*3 调用升级接口 get请求
  19. 输入参数 type OS:ios
  20. 输入参数 source stealth:隐私盒子,skyworth:创维盒子
  21. 返回数据模型 */
  22. #define upgradeNewVersion @"/box/upgrade/new/version"
  23. /*4 修改隐私模式 POST请求
  24. 输入参数 sn
  25. 输入参数 isPrivacyMode true:开启隐私模式 false:关闭隐私模式
  26. 返回数据模型 */
  27. #define updatePrivacyMode @"/box/updatePrivacyMode"
  28. /*5 是否需要强制重启 POST请求
  29. 输入参数 sn
  30. 输入参数 isForceStart 是否强制重启
  31. 返回数据模型 */
  32. #define updateForceStart @"/box/updateForceStart"
  33. /*6 查询一条公告数据 POST请求
  34. 输入参数 productType 创维盒子:Private-X 隐私盒子:InsiBox
  35. 输入参数 type 应用类型(安卓=apk IOS=ios TV=app)
  36. 返回数据模型 */
  37. #define queryOneNotice @"/box/notice/queryOne"
  38. /*7 上报日志 POST请求
  39. 输入参数 sn
  40. 输入参数 key 文件中心上传成功的到的key
  41. 输入参数 type 应用类型(安卓=apk IOS=ios TV=app)
  42. 返回数据模型 */
  43. #define addLogFun @"/box/log/add"
  44. /*8 上报版本号信息 POST请求
  45. 输入参数 iosClientVersionNumber
  46. 返回数据模型 */
  47. #define reportVersionInfo @"/box/reportVersionInfo"
  48. /*9 根据sn查询ip和port接口 GET请求
  49. 输入参数 sn
  50. 返回数据模型 */
  51. #define getIpFun @"/box/ip/allocation/getIp"
  52. /*10 分享开关接口 GET请求
  53. 输入参数 type 1=应用;2=图片;3=视频;4=音频;5=文档;6=文件 7=最近文件
  54. 返回数据模型 */
  55. #define queryShareSwitchFun @"/box/share/info/queryShareSwitch"
  56. /*11 新增分享接口 POST请求
  57. 输入参数
  58. 返回数据模型 */
  59. #define addShareInfoFun @"/box/share/info/add"
  60. /*12 修改分享接口 POST请求
  61. 输入参数 id 主键id
  62. 输入参数 status 状态 0=有效 1=无效
  63. 输入参数 expirationStatus 过期状态 0=有效 1=失效
  64. 返回数据模型 */
  65. #define updateShareInfoFun @"/box/share/info/update"
  66. /*13 分享记录列表接口 POST请求
  67. 输入参数
  68. 返回数据模型 */
  69. #define queryShareRecordFun @"/box/share/info/queryByCondition"
  70. /*14 查询单个分享信息接口 POST请求
  71. 输入参数 fileIdList 主键id
  72. 输入参数 token 状态 token
  73. 输入参数 extractionCode 提取码
  74. 返回数据模型 */
  75. #define queryOneShareInfoFun @"/box/share/info/queryOne"
  76. /*15 删除分享接口 POST请求
  77. 输入参数 idList 主键id
  78. 返回数据模型 */
  79. #define deleteShareListFun @"/box/share/info/delete"
  80. /*16 分享规则接口 POST请求
  81. 输入参数 agreementCoding boxShareRules2024
  82. 输入参数 languageType 语言类型(1=中文 2=英文 3=中文繁体 4=日文)
  83. 返回数据模型 */
  84. //#define queryShareRuleFun @"/box/agreement/info/queryByCondition"
  85. /*17 数据埋点 POST请求
  86. 输入参数 eventType 事件模块类型 一级模块=1 二级模块=2 三级模块=3
  87. 输入参数 eventValue string
  88. 返回数据模型 */
  89. #define clientAddDataPointFun @"/box/data/point/clientAdd"
  90. /*18 分享开关接口 GET请求
  91. 输入参数
  92. 返回数据模型 */
  93. #define queryShareReportMarkFun @"/box/share/info/queryReportMark"
  94. /*19 分享开关接口 POST请求
  95. 输入参数
  96. 返回数据模型 */
  97. #define updateShareReportMarkFun @"/box/share/info/updateReportMark"
  98. /*20 扫码登录接口 POST请求
  99. 输入参数
  100. 返回数据模型 */
  101. #define updatePCLoginStateFun @"/box/login/updateStatus"
  102. /*21 webrtc客户端查询唯一标识接口 POST请求
  103. 1.4.4 需求更改 返回的 链接是数组类型 客户端ping后看哪个延时短 选哪个用
  104. 输入参数
  105. 返回数据模型 */
  106. //#define webrctQueryByClient @"/box/webrtc/identifier/queryByClient"
  107. #define webrctQueryByClient @"/box/webrtc/identifier/queryByClient2"
  108. /*22 webrtc 链接打洞是否成功 POST请求
  109. 输入参数
  110. type 类型 1=apk 2=ios 3=pc
  111. status 状态 0=失败 1=打洞连接成功 2=中转连接成功
  112. channelType 状态 通道类型 1=数据通道 2=音视频通道
  113. clientNetworkStatus 客户端网络状态 0=局域网 1=公网
  114. 返回数据模型 */
  115. #define webrctLogAdd @"/box/webrtc/log/add"
  116. /*23 查询升级流程进度接口 POST请求
  117. 输入参数
  118. type 类型 安卓=apk IOS=ios TV=app 镜像=ota 脚本=robox 宿主机代理=vagent Windows=windows Mac=mac
  119. 返回数据模型 */
  120. #define queryUpgradeInfo @"/box/upgrade/info/detail/queryUpgradeInfo"
  121. /*24 升级流程上报 POST请求
  122. 输入参数
  123. status 2=点击升级
  124. type 类型 安卓=apk IOS=ios TV=app 镜像=ota 脚本=robox 宿主机代理=vagent Windows=windows Mac=mac
  125. 返回数据模型 */
  126. #define upgradeDetailAdd @"/box/upgrade/info/detail/add"
  127. /*25 关闭弹窗 POST请求
  128. 输入参数
  129. popButton 1=关闭弹窗
  130. type 类型 安卓=apk IOS=ios TV=app 镜像=ota 脚本=robox 宿主机代理=vagent Windows=windows Mac=mac
  131. 返回数据模型 */
  132. #define updateOTAPopButton @"/box/upgrade/info/detail/updatePopButton"
  133. /*26 根据sn查询心跳 get请求
  134. 输入参数
  135. 返回数据模型 */
  136. #define queryHeartbeat @"/box/heartbeat/check/queryHeartbeat"
  137. #endif /* newWorkInterface_h */