XYSocialApiManager.h 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. //
  2. // XYSocialApiManager.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2019/12/31.
  6. // Copyright © 2019 翟玉磊. All rights reserved.
  7. //
  8. #import "ZYLAPIManager.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface XYSocialApiManager : ZYLAPIManager
  11. /// 关注用户
  12. /// @param targetId 目标用户id
  13. /// @param successHandler 请求成功
  14. /// @param failureHandler 请求失败
  15. - (NSNumber *)followUserWithTargetId:(NSString *)targetId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  16. /// 删除好友
  17. /// @param targetId 目标用户id
  18. /// @param successHandler 请求成功
  19. /// @param failureHandler 请求失败
  20. - (NSNumber *)delFriendWithTargetId:(NSString *)targetId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  21. /// 取消关注用户
  22. /// @param targetId 目标用户id
  23. /// @param successHandler 请求成功
  24. /// @param failureHandler 请求失败
  25. - (NSNumber *)unFollowUserWithTargetId:(NSString *)targetId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  26. /// 同意好友申请
  27. /// @param reqId 好友申请记录的id
  28. /// @param optMsg 处理意见
  29. /// @param successHandler 请求成功
  30. /// @param failureHandler 请求失败
  31. - (NSNumber *)agreeFriendReqWithReqId:(NSString *)reqId optMsg:(NSString *)optMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  32. /// 好友申请列表
  33. /// @param pageNum 页码
  34. /// @param pageSize 每页数量
  35. /// @param successHandler 请求成功
  36. /// @param failureHandler 请求失败
  37. - (NSNumber *)getFriendReqListWithPageNum:(NSInteger)pageNum pageSize:(NSInteger)pageSize successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  38. /// 我的关注列表
  39. /// @param pageNum 页码
  40. /// @param successHandler 请求成功
  41. /// @param failureHandler 请求失败
  42. - (NSNumber *)getFollowListWithPageNum:(NSInteger)pageNum userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  43. /// 我的好友列表
  44. /// @param pageNum 页码
  45. /// @param userId 每页数量
  46. /// @param successHandler 请求成功
  47. /// @param failureHandler 请求失败
  48. - (NSNumber *)getFriendListWithPageNum:(NSInteger)pageNum userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  49. /// 我的粉丝列表
  50. /// @param pageNum 页码
  51. /// @param userId 每页数量
  52. /// @param successHandler 请求成功
  53. /// @param failureHandler 请求失败
  54. - (NSNumber *)getFansListWithPageNum:(NSInteger)pageNum userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  55. /// 拒绝好友申请
  56. /// @param reqId 好友申请记录的id
  57. /// @param optMsg 处理意见
  58. /// @param successHandler 请求成功
  59. /// @param failureHandler 请求失败
  60. - (NSNumber *)denyFriendReqWithReqId:(NSString *)reqId optMsg:(NSString *)optMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  61. /// 添加好友
  62. /// @param targetId 目标用户id
  63. /// @param reqMsg 好友申请时验证信息
  64. /// @param successHandler 请求成功
  65. /// @param failureHandler 请求失败
  66. - (NSNumber *)addFriendReqWithTargetId:(NSString *)targetId reqMsg:(NSString *)reqMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  67. /// 获取访客列表
  68. /// @param pageIndex 页码
  69. /// @param successHandler 请求成功
  70. /// @param failureHandler 请求失败
  71. - (NSNumber *)getVisitorListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  72. /// 获取足迹列表
  73. /// @param pageIndex 页码
  74. /// @param successHandler 请求成功
  75. /// @param failureHandler 请求失败
  76. - (NSNumber *)getIntervieweeListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  77. /// 添加黑名单
  78. /// @param userId 用户id
  79. /// @param successHandler 请求成功
  80. /// @param failureHandler 请求失败
  81. - (NSNumber *)addBlackWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  82. /// 删除黑名单
  83. /// @param userId 用户id
  84. /// @param successHandler 请求成功
  85. /// @param failureHandler 请求失败
  86. - (NSNumber *)delBlackWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  87. /// 获取黑名单列表
  88. /// @param pageIndex 当前页码
  89. /// @param lastSeq 序列号 第一次传0
  90. /// @param successHandler 请求成功
  91. /// @param failureHandler 请求失败
  92. - (NSNumber *)getBlackListWithPageIndex:(NSInteger)pageIndex lastSeq:(NSString *)lastSeq successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  93. /// 遇见(搜索框右侧数据)
  94. /// @param successHandler 请求成功
  95. /// @param failureHandler 请求失败
  96. - (NSNumber *)getPeopleNearbySuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  97. /// 获取遇见分页数据
  98. /// @param pageIndex 当前页码
  99. /// @param userSex 用户性别 0:全部 1:男 2:女
  100. /// @param userAgeMin 最小年龄
  101. /// @param userAgeMax 最大年龄
  102. /// @param successHandler 请求成功
  103. /// @param failureHandler 请求失败
  104. - (NSNumber *)getPeopleNearbyPageListWithPageIndex:(NSInteger)pageIndex userSex:(NSInteger)userSex userAgeMin:(NSInteger)userAgeMin userAgeMax:(NSInteger)userAgeMax successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  105. /// 获得搜索默认关键词
  106. /// @param successHandler 请求成功
  107. /// @param failureHandler 请求失败
  108. - (NSNumber *)getSearchDefaultKeywordsSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  109. /// 猜你喜欢列表
  110. /// @param successHandler 请求成功
  111. /// @param failureHandler 请求失败
  112. - (NSNumber *)getMayLikeSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  113. /// 最近看过的用户列表
  114. /// @param successHandler 请求成功
  115. /// @param failureHandler 请求失败
  116. - (NSNumber *)getRecentlySeenUsersSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  117. /// 谁看过我列表
  118. /// @param pageIndex 页码
  119. /// @param successHandler 请求成功
  120. /// @param failureHandler 请求失败
  121. - (NSNumber *)getIntervieweeListV2:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  122. /// 我看过谁列表
  123. /// @param pageIndex 页码
  124. /// @param successHandler 请求成功
  125. /// @param failureHandler 请求失败
  126. - (NSNumber *)getVisitorListV2:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  127. /// 获取用户房间足迹分页
  128. /// @param pageIndex 页码
  129. /// @param successHandler 请求成功
  130. /// @param failureHandler 请求失败
  131. - (NSNumber *)getRtcRoomHisPageList:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  132. /// 谁看过我数量统计
  133. /// @param successHandler 请求成功
  134. /// @param failureHandler 请求失败
  135. - (NSNumber *)getIntervieweeTotalSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  136. /// 未读访客消息数
  137. /// @param successHandler 请求成功
  138. /// @param failureHandler 请求失败
  139. - (NSNumber *)getIntervieweeUnReadMsgCountSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  140. /// 获取关系墙
  141. /// @param successHandler 请求成功
  142. /// @param failureHandler 请求失败
  143. - (NSNumber *)getWatchWallHisSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  144. /// 获取广播墙
  145. /// @param successHandler 请求成功
  146. /// @param failureHandler 请求失败
  147. - (NSNumber *)getBroadWallHisSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  148. @end
  149. NS_ASSUME_NONNULL_END