CloudPhoneAPI.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. //
  2. // CloudPhoneAPI.h
  3. // VclustersGemini
  4. //
  5. // Created by APPLE on 2020/8/27.
  6. // Copyright © 2020 APPLE. All rights reserved.
  7. //
  8. #ifndef CloudPhoneAPI_h
  9. #define CloudPhoneAPI_h
  10. #pragma mark - API - 获取云手机信息
  11. /*单个云手机信息 get请求
  12. 输入参数 userCard
  13. 返回数据模型 CloudPhoneDataModel*/
  14. #define LoadSingleDeviceAPI @"/api/resources/v5/client/disk/info/userCard/single"
  15. /*获取设备列表 get请求
  16. 输入参数 无
  17. 返回数据模型 CloudPhoneListModel*/
  18. #define LoadDeviceAPI @"/api/resources/v5/client/disk/info"
  19. /*云手机超分getRbd*/
  20. #define GETDEVICESTATESAPI @"/api/resources/user/cloud/connect"
  21. /*获取云手机websocket连接地址\校验token get请求
  22. 输入参数 userCardId int 参数说明/api/resources/user/cloud/token/{userCardId} 在后面拼接设备id
  23. 返回数据模型 SuperModel*/
  24. #define GETCloudIsMountAPI @"/api/resources/user/cloud/isMount?userCardId="
  25. /*暂停站点迁移 get请求
  26. 输入参数 userCardId int 参数说明/api/storage/v1/site/switch/suspend/{userCardId} 在后面拼接设备id
  27. 返回数据模型 SuperModel*/
  28. #define zdqhAPISuspendAPI @"/api/storage/v1/site/switch/suspend"
  29. /*一键换机 post请求
  30. 输入参数 userCardId int 云手机ID
  31. coordinatesLat NSString 用户坐标经度
  32. coordinatesLng NSString 用户坐标纬度
  33. userOperatorNetwork NSString 用户运营商网络
  34. 返回数据模型 SuperModel*/
  35. #define ChangePhoneAPI @"/api/resources/v1/cardStatus/change/mobilephone"
  36. #pragma mark - API - 云手机设置上报信息
  37. /*超分 post请求
  38. 输入参数 userCardId int 云手机ID
  39. coordinatesLat NSString 用户坐标经度
  40. coordinatesLng NSString 用户坐标纬度
  41. userOperatorNetwork NSString 用户运营商网络
  42. 返回数据模型 SuperModel ps:需要在data中获取数据暂时未写数据model*/
  43. #define GETDEVICESTATEUSERBUOY @"/api/resources/user/cloud/updateCardBuoy"/*设置云手机浮标*/
  44. #define GETDEVICENetworkQualitySAPI @"/api/resources/v5/networkQuality/addNetworkQualityLog"/*上报网络质量信息*/
  45. /*系统升级 get请求
  46. 输入参数 userCardId int 云手机ID
  47. 返回数据模型 SuperModel*/
  48. #define GETUpgradeAPI @"/api/pay/v5/system/upgrade/execute"
  49. /*判断系统升级是否可以保存数据 get请求
  50. 输入参数 userCardId int 云手机ID
  51. 返回数据模型 SuperModel*/
  52. #define GETUpgradeCanSaveDataAPI @"/api/pay/v5/system/upgrade/info"
  53. #pragma mark - API - 站点迁移
  54. #define ExchagneSiteAPI @"/api/storage/v1/site/switch/start" /*站点迁移*/
  55. #define GETTASKCOUNT @"/api/storage/v1/rbdMove/getTaskCount" /*获取站点排队数量*/
  56. #define GETLOCATIONCOUNT @"/api/storage/v1/rbdMove/getLocationCount" /*获取排队当前序列号*/
  57. #define GETTASKCOUNT @"/api/storage/v1/rbdMove/getTaskCount" /*获取站点排队数量*/
  58. #define GETLOCATIONCOUNT @"/api/storage/v1/rbdMove/getLocationCount" /*获取排队云手机当前序列号*/
  59. #define GetAllBaseStatesUseInfoAPI @"/api/storage/v1/site/switch/area/list" /*获取所有站点使用情况*/
  60. #define CancelChagneSiteWaitingAPI @"/api/storage/v1/rbdMove/logoutMove" /*取消站点迁移排队*/
  61. #define NewExchagneSiteAPI @"/api/storage/v1/rbdMove/addTask" /*用户确认排队 使用该接口记录用户排队成功*/
  62. #define CancelExchagneSiteAPI @"/api/storage/v1/site/switch/delete" /*取消切换*/
  63. /*试用看完广告免排队,上报通知服务器 post请求
  64. 输入参数 phoneType NSString 星动:VIP 星曜:SVIP 星际:STAR
  65. trialRecordId int 试用排队ID 通过开始排队接口获得
  66. 返回数据模型 AvoidQueuUpLoadModel*/
  67. #define AvoidQueuUpLoadAPI @"/api/resources/v4/freetrial/jumpOverQueue"
  68. #pragma mark - API - 桌面快捷方式
  69. #define QueryIconUrlWithPackageNameAPI @"/api/public/v1/shortcut/fileId" /*快捷方式 - 根据app包名查询icon的field*/
  70. #define AddIconFileIDWithPackageNameAPI @"/api/public/v1/shortcut/addFileId" /*快捷方式 - icon 上传文件服务器之后 通知服务器*/
  71. /*获取是否有免费排队资格 get请求
  72. 返回数据模型 FreeAuthDataModel*/
  73. #define GETHaveFreeQuitAPI @"/api/resources/v4/freetrial/queueFree"
  74. /**激活码试用云手机-查询进入等待时长 get请求 */
  75. #define GetActiveCodeTrialWaitTimeAPI @"/api/pay/v5/trialCodeConfig/getWaitTime"
  76. /**激活码试用云手机-获取试用规则 get请求 */
  77. #define GetActiveCodeTrialRuleAPI @"/api/pay/v5/trialCodeConfig/getConfigByPhoneType"
  78. /**免费试用云手机-查询进入等待时长 Post请求 */
  79. #define GetNormalTrialWaitTimeAPI @"/api/resources/v1/trial/reenterTime"
  80. /**免费试用云手机-获取广告配置 get请求 */
  81. #define GetNormalTrialRuleAPI @"/api/resources/v4/freetrial/advert/config"
  82. /**免费试用云手机-间隔广告上报 Post请求 */
  83. #define GETTrialADReportAPI @"/api/resources/v1/trial/report"
  84. /**云手机支付透传 - 支付订单上报服务器 Post请求 */
  85. #define PostCloudPhonePayFromAppReportAPI @"/api/pay/third/order"
  86. /**云手机套餐升级 - 获取套餐列表信息以及支付信息 Get请求 */
  87. #define GetCloudPhonePackageUpdateInfoAPI @"/api/pay/v1/meal/upgrade/list"
  88. /**云手机套餐升级 - 获取云手机套餐升级当前套餐价格 Post请求 */
  89. #define PostCloudPhonePackageUpdatePriceAPI @"/api/pay/v1/meal/upgrade/price"
  90. /**试用云手机推荐 - 获取用户标签list Post请求 */
  91. #define PostTrailUserTagListAPI @"/api/user/v5/userLabelInfo/getAllLabel"
  92. /**试用云手机推荐 - 设置用户标签 Post请求 */
  93. #define PostSetTrailUserTagAPI @"/api/user/v5/userLabelInfo/setLabel"
  94. /*获取云手机的分辨率 get请求
  95. 输入参数 无
  96. 返回数据模型 PhoneResolvingModel*/
  97. #define GetPhoneResolvingsAPI @"/api/resources/v5/machine/resolution/getResolvingPower"
  98. /*获取云手机的分辨率 get请求
  99. 输入参数 width int 分辨率宽度
  100. high int 分辨率高度
  101. dpi int 分辨率密度
  102. userCardId int 云手机ID
  103. 返回数据模型 SuperModel*/
  104. #define PostUploadPhoneResolvingsAPI @"/api/resources/v5/machine/resolution/operationResolvingPower"
  105. /*获取年卡云机推荐app get请求
  106. 输入参数 userCardId 云机ID
  107. 返回数据模型 RecommendedAppListModel*/
  108. #define GETRecommendAppAPI @"/api/public/v1/market/get/recommend"
  109. /*获取年卡剩余时间 get请求
  110. 输入参数 userCardId 云机ID
  111. 返回数据模型 SuperModel*/
  112. #define GETPhoneVailTimeAPI @"/api/resources/yearMember/getResidueTime"
  113. /*获取续费云手机年卡时长套餐*/
  114. #define GETYearCardpackageAPI @"/api/pay/v2/meal/info/getTimeMenuRule"
  115. /*云机下线 get请求
  116. 输入参数 userCardId 云机ID
  117. 返回数据模型 SuperModel*/
  118. #define GETOffLinePhoneAPI @"/api/resources/yearMember/downline"
  119. /*云机上线开始计时 get请求
  120. 输入参数 userCardId 云机ID
  121. 返回数据模型 SuperModel*/
  122. #define GETOnLinePhoneAPI @"/api/resources/yearMember/startTime"
  123. /*关闭漂浮按钮 get请求
  124. 输入参数 userCardId 云机ID
  125. 返回数据模型 SuperModel*/
  126. #define GETCloseRemindAPI @"/api/resources/yearMember/closeRemind"
  127. /*获取年卡进入云机排队详情 get请求
  128. 输入参数 userCardId 云机ID
  129. 返回数据模型 GetPhoneYearCardQunueDataModel*/
  130. #define GetPhoneYearCardQunueDataAPI @"/api/resources/user/cloud/getConnectQueuePosition"
  131. /*取消年卡排队 post请求
  132. 输入参数 userCardId 云机ID
  133. 返回数据模型 SuperModel*/
  134. #define CancelPhoneYearCardQunueAPI @"/api/resources/user/cloud/cancelConnectQueue"
  135. /*获取云手机新手视频信息 post请求
  136. 输入参数 pageNum 页码 1
  137. 输入参数 pageSize 页长 20
  138. 返回数据模型 SuperModel*/
  139. #define GetGuideVideoList @"/api/public/v1/novice/guide/video/list"
  140. /*点赞或者踩 post请求
  141. 输入参数 type 类型 0点赞 1踩
  142. 输入参数 videoId 视频ID str
  143. 返回数据模型 SuperModel*/
  144. #define clickVideoAction @"/api/public/v1/novice/guide/video/clickVideoAction"
  145. /*取消点赞或者踩 (目前只有取消踩) post请求
  146. 输入参数 type 类型 0点赞 1踩
  147. 输入参数 videoId 视频ID str
  148. 返回数据模型 SuperModel*/
  149. #define cancelClickVideoAction @"/api/public/v1/novice/guide/video/cancelClickVideoAction"
  150. /*视频展示次数 post请求
  151. 输入参数 videoId 视频ID str
  152. 返回数据模型 SuperModel*/
  153. #define videoShowAction @"/api/public/v1/novice/guide/video/videoShow"
  154. /*获取年卡分享详情 get请求
  155. 输入参数 无
  156. 返回数据模型 YearCardShareDataModel*/
  157. #define GetPhoneYearCardShareDataAPI @"/api/resources/register/send/cloud/phone/shareCanReceiveCloudPhone"
  158. /*获取年卡分享详情 post请求
  159. 输入参数 无
  160. 返回数据模型 SuperModel*/
  161. #define PostPhoneYearCardShareDataAPI @"/api/resources/register/send/cloud/phone/shareReceiveCloudPhone"
  162. /*批量恢复出厂设置 get请求
  163. 输入参数 数组
  164. 返回数据模型 SuperModel*/
  165. #define PostPhoneListReSetAPI @"/api/resources/card/resources/reset"
  166. /*批量重启设置 get请求
  167. 输入参数 数组
  168. 返回数据模型 SuperModel*/
  169. #define PostPhoneListReStartAPI @"/api/resources/card/resources/reboot"
  170. #define TabBarItemClickAPI @"/api/public/v1/systemBuriedPoint/stat"
  171. #define NewBuryPointAPI @"/api/public/v5/buriedPointRecord/reportRecords" /*新埋点功能-2022.6.21*/
  172. #define PostServiceUseAPI @"/api/pay/v4/addedServiceClient/report" /*增值服务使用记录上报*/
  173. /*获取验证码 post请求
  174. 输入参数 phone NSString 电话号码
  175. type NSString regist:注册
  176. login:验证码登录
  177. passwd_back:找回密码
  178. modify_phone:修改手机号码
  179. send_star_coin:赠送星币
  180. logout_user:注销账号
  181. common:微信登录、QQ登录、Apple登录、第三方登录设置密码
  182. authorizationType NSString 1:微信登录 2:QQ登录 3:Apple登录 其它情况无需该字段
  183. 返回数据模型 SuperModel*/
  184. #define SMSVerCodeAPI @"/api/message/v1/phone/send"
  185. /*登录注册 post请求
  186. 输入参数 phone NSString 电话号码
  187. code NSString 设备唯一标识符
  188. 返回数据模型 SuperModel*/
  189. #define SMSVerCodeRegisterAndLoginAPI @"/api/user/v1/user/register"
  190. #define AppVersionCheckAPI @"/api/publics/v1/client/upgrade/version" /*app新版本检测API*/
  191. #define GetUserPhoneInfoAPI @"/api/resources/user/cloud/getUserPhoneInfo"
  192. #define PostPhonePackageInfoAPI @"/api/pay/v1/menu/rule/getInfo"
  193. #define PostCreateOrderAPI @"/api/pay/v1/order/create"/*创建订单*/
  194. #define GetPayOrderAPI @"/api/pay/v1/order/pullOrder"/*拉起订单支付*/
  195. /*获取用户基本信息 post请求
  196. 输入参数 phone NSString 电话号码
  197. code NSString 设备唯一标识符
  198. 返回数据模型 SuperModel*/
  199. #define PostUserDetailInfo @"/api/user/v1/user/getUserDetailInfo"
  200. /*获取用户基本信息 post请求
  201. 输入参数 phone NSString 电话号码
  202. code NSString 设备唯一标识符
  203. 返回数据模型 SuperModel*/
  204. #define PostListOrderInfo @"/api/pay/v1/order/listOrderInfo"
  205. /*获取用户基本信息 Get请求
  206. 输入参数 userCardId int 云手机ID
  207. 返回数据模型 SuperModel*/
  208. #define GetPhonereboot @"/api/resources/api/usercard/reboot"
  209. #endif /* CloudPhoneAPI_h */