newWorkInterface.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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=文件
  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. #endif /* newWorkInterface_h */