123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- //
- // XYAnchorAPIManager.h
- // Starbuds
- //
- // Created by 翟玉磊 on 2019/12/25.
- // Copyright © 2019 翟玉磊. All rights reserved.
- // 主播相关接口
- #import "ZYLAPIManager.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface XYAnchorAPIManager : ZYLAPIManager
- /// 发起主播认证
- /// @param idCardHoldImg 手持身份证照片
- /// @param idCardFaceImg 身份证正面照片
- /// @param idCardNationImg 身份证反面照片
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)addApplyWithIdCardHoldImg:(NSString *)idCardHoldImg idCardFaceImg:(NSString *)idCardFaceImg idCardNationImg:(NSString *)idCardNationImg SuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 最近一次认证记录
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getLastApplyRecordSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取置顶推荐直播
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getTopSuggestSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取直播详情
- /// @param userId 主播id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getLiveInfoWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取房管列表
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getMastersSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 取消房管
- /// @param userId 要取消的用户 id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)removeMasterWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 申请签约公会
- /// @param agentId 公会id
- /// @param applyMsg 申请时备注
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)applyAgentWithAgentId:(NSString *)agentId applyMsg:(NSString *)applyMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取公会列表
- /// @param content 公会编号或名称
- /// @param pageNum 当前页码
- /// @param pageSize 分页大小
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getAgentPageListWithContent:(NSString *)content pageNum:(NSInteger)pageNum pageSize:(NSInteger)pageSize successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取公会详情
- /// @param agentId 公会id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getAgentDetailWithAgentId:(NSString *)agentId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 申请解约公会
- /// @param agentId 公会id
- /// @param applyMsg 申请时备注
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)cancelAgentWithAgentId:(NSString *)agentId applyMsg:(NSString *)applyMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- // 获取最近一次入会申请信息
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getLastApplyInfoSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 设置粉丝团名称
- /// @param fansName 粉丝团名称
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)setFansNameWithFansName:(NSString *)fansName successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取主播基础信息(订阅、粉丝等)
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getInfoSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取粉丝团成员列表
- /// @param pageIndex 页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getFansListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 使用道具
- /// @param bagId 物品id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)usePropsBagId:(NSString *)bagId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 兑换靓号
- /// @param bagId 背包靓号卡 id
- /// @param niceNo 靓号
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)exchangeNiceNoWithBagId:(NSString *)bagId niceNo:(NSString *)niceNo successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// pk-获取主播pk列表
- /// @param type 1:全部 2:公会 3:关注
- /// @param pageIndex 当前页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getAnchorPkListWithType:(NSInteger)type pageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// pk-获取主播列表(搜索)
- /// @param text 搜索的关键字
- /// @param pageIndex 当前页码
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getAnchorListWithSearchText:(NSString *)text pageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// Ta的房间
- /// @param userId 用户id 不传查自己
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getRoomWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- @end
- NS_ASSUME_NONNULL_END
|