123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- //
- // XYSocialApiManager.h
- // Starbuds
- //
- // Created by 翟玉磊 on 2019/12/31.
- // Copyright © 2019 翟玉磊. All rights reserved.
- //
- #import "ZYLAPIManager.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface XYSocialApiManager : ZYLAPIManager
- /// 关注用户
- /// @param targetId 目标用户id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)followUserWithTargetId:(NSString *)targetId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 删除好友
- /// @param targetId 目标用户id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)delFriendWithTargetId:(NSString *)targetId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 取消关注用户
- /// @param targetId 目标用户id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)unFollowUserWithTargetId:(NSString *)targetId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 同意好友申请
- /// @param reqId 好友申请记录的id
- /// @param optMsg 处理意见
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)agreeFriendReqWithReqId:(NSString *)reqId optMsg:(NSString *)optMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 好友申请列表
- /// @param pageNum 页码
- /// @param pageSize 每页数量
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getFriendReqListWithPageNum:(NSInteger)pageNum pageSize:(NSInteger)pageSize successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 我的关注列表
- /// @param pageNum 页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getFollowListWithPageNum:(NSInteger)pageNum userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 我的好友列表
- /// @param pageNum 页码
- /// @param userId 每页数量
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getFriendListWithPageNum:(NSInteger)pageNum userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 我的粉丝列表
- /// @param pageNum 页码
- /// @param userId 每页数量
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getFansListWithPageNum:(NSInteger)pageNum userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 拒绝好友申请
- /// @param reqId 好友申请记录的id
- /// @param optMsg 处理意见
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)denyFriendReqWithReqId:(NSString *)reqId optMsg:(NSString *)optMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 添加好友
- /// @param targetId 目标用户id
- /// @param reqMsg 好友申请时验证信息
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)addFriendReqWithTargetId:(NSString *)targetId reqMsg:(NSString *)reqMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取访客列表
- /// @param pageIndex 页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getVisitorListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取足迹列表
- /// @param pageIndex 页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getIntervieweeListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 添加黑名单
- /// @param userId 用户id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)addBlackWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 删除黑名单
- /// @param userId 用户id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)delBlackWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取黑名单列表
- /// @param pageIndex 当前页码
- /// @param lastSeq 序列号 第一次传0
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getBlackListWithPageIndex:(NSInteger)pageIndex lastSeq:(NSString *)lastSeq successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 遇见(搜索框右侧数据)
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getPeopleNearbySuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取遇见分页数据
- /// @param pageIndex 当前页码
- /// @param userSex 用户性别 0:全部 1:男 2:女
- /// @param userAgeMin 最小年龄
- /// @param userAgeMax 最大年龄
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getPeopleNearbyPageListWithPageIndex:(NSInteger)pageIndex userSex:(NSInteger)userSex userAgeMin:(NSInteger)userAgeMin userAgeMax:(NSInteger)userAgeMax successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获得搜索默认关键词
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getSearchDefaultKeywordsSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 猜你喜欢列表
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getMayLikeSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 最近看过的用户列表
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getRecentlySeenUsersSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 谁看过我列表
- /// @param pageIndex 页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getIntervieweeListV2:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 我看过谁列表
- /// @param pageIndex 页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getVisitorListV2:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取用户房间足迹分页
- /// @param pageIndex 页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getRtcRoomHisPageList:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 谁看过我数量统计
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getIntervieweeTotalSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 未读访客消息数
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getIntervieweeUnReadMsgCountSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取关系墙
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getWatchWallHisSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取广播墙
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getBroadWallHisSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- @end
- NS_ASSUME_NONNULL_END
|