XYAnchorAPIManager.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. //
  2. // XYAnchorAPIManager.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2019/12/25.
  6. // Copyright © 2019 翟玉磊. All rights reserved.
  7. // 主播相关接口
  8. #import "ZYLAPIManager.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface XYAnchorAPIManager : ZYLAPIManager
  11. /// 发起主播认证
  12. /// @param idCardHoldImg 手持身份证照片
  13. /// @param idCardFaceImg 身份证正面照片
  14. /// @param idCardNationImg 身份证反面照片
  15. /// @param successHandler 请求成功
  16. /// @param failureHandler 请求失败
  17. - (NSNumber *)addApplyWithIdCardHoldImg:(NSString *)idCardHoldImg idCardFaceImg:(NSString *)idCardFaceImg idCardNationImg:(NSString *)idCardNationImg SuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  18. /// 最近一次认证记录
  19. /// @param successHandler 请求成功
  20. /// @param failureHandler 请求失败
  21. - (NSNumber *)getLastApplyRecordSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  22. /// 获取置顶推荐直播
  23. /// @param successHandler 请求成功
  24. /// @param failureHandler 请求失败
  25. - (NSNumber *)getTopSuggestSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  26. /// 获取直播详情
  27. /// @param userId 主播id
  28. /// @param successHandler 请求成功
  29. /// @param failureHandler 请求失败
  30. - (NSNumber *)getLiveInfoWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  31. /// 获取房管列表
  32. /// @param successHandler 请求成功
  33. /// @param failureHandler 请求失败
  34. - (NSNumber *)getMastersSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  35. /// 取消房管
  36. /// @param userId 要取消的用户 id
  37. /// @param successHandler 请求成功
  38. /// @param failureHandler 请求失败
  39. - (NSNumber *)removeMasterWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  40. /// 申请签约公会
  41. /// @param agentId 公会id
  42. /// @param applyMsg 申请时备注
  43. /// @param successHandler 请求成功
  44. /// @param failureHandler 请求失败
  45. - (NSNumber *)applyAgentWithAgentId:(NSString *)agentId applyMsg:(NSString *)applyMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  46. /// 获取公会列表
  47. /// @param content 公会编号或名称
  48. /// @param pageNum 当前页码
  49. /// @param pageSize 分页大小
  50. /// @param successHandler 请求成功
  51. /// @param failureHandler 请求失败
  52. - (NSNumber *)getAgentPageListWithContent:(NSString *)content pageNum:(NSInteger)pageNum pageSize:(NSInteger)pageSize successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  53. /// 获取公会详情
  54. /// @param agentId 公会id
  55. /// @param successHandler 请求成功
  56. /// @param failureHandler 请求失败
  57. - (NSNumber *)getAgentDetailWithAgentId:(NSString *)agentId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  58. /// 申请解约公会
  59. /// @param agentId 公会id
  60. /// @param applyMsg 申请时备注
  61. /// @param successHandler 请求成功
  62. /// @param failureHandler 请求失败
  63. - (NSNumber *)cancelAgentWithAgentId:(NSString *)agentId applyMsg:(NSString *)applyMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  64. // 获取最近一次入会申请信息
  65. /// @param successHandler 请求成功
  66. /// @param failureHandler 请求失败
  67. - (NSNumber *)getLastApplyInfoSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  68. /// 设置粉丝团名称
  69. /// @param fansName 粉丝团名称
  70. /// @param successHandler 请求成功
  71. /// @param failureHandler 请求失败
  72. - (NSNumber *)setFansNameWithFansName:(NSString *)fansName successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  73. /// 获取主播基础信息(订阅、粉丝等)
  74. /// @param successHandler 请求成功
  75. /// @param failureHandler 请求失败
  76. - (NSNumber *)getInfoSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  77. /// 获取粉丝团成员列表
  78. /// @param pageIndex 页码
  79. /// @param successHandler 请求成功
  80. /// @param failureHandler 请求失败
  81. - (NSNumber *)getFansListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  82. /// 使用道具
  83. /// @param bagId 物品id
  84. /// @param successHandler 请求成功
  85. /// @param failureHandler 请求失败
  86. - (NSNumber *)usePropsBagId:(NSString *)bagId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  87. /// 兑换靓号
  88. /// @param bagId 背包靓号卡 id
  89. /// @param niceNo 靓号
  90. /// @param successHandler 请求成功
  91. /// @param failureHandler 请求失败
  92. - (NSNumber *)exchangeNiceNoWithBagId:(NSString *)bagId niceNo:(NSString *)niceNo successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  93. /// pk-获取主播pk列表
  94. /// @param type 1:全部 2:公会 3:关注
  95. /// @param pageIndex 当前页码
  96. /// @param successHandler 请求成功
  97. /// @param failureHandler 请求失败
  98. - (NSNumber *)getAnchorPkListWithType:(NSInteger)type pageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  99. /// pk-获取主播列表(搜索)
  100. /// @param text 搜索的关键字
  101. /// @param pageIndex 当前页码
  102. /// @param successHandler 请求成功
  103. /// @param failureHandler 请求失败
  104. - (NSNumber *)getAnchorListWithSearchText:(NSString *)text pageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  105. /// Ta的房间
  106. /// @param userId 用户id 不传查自己
  107. /// @param successHandler 请求成功
  108. /// @param failureHandler 请求失败
  109. - (NSNumber *)getRoomWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  110. @end
  111. NS_ASSUME_NONNULL_END