// // XYSocialApiManager.m // Starbuds // // Created by 翟玉磊 on 2019/12/31. // Copyright © 2019 翟玉磊. All rights reserved. // #import "XYSocialApiManager.h" /// 关注用户 static NSString * const SOCIAL_FOLLOW_USER = @"api-app/v1/social/followUser"; /// 删除好友 static NSString * const SOCIAL_DEL_FRIEND = @"api-app/v1/social/delFriend"; /// 取消关注用户 static NSString * const SOCIAL_UNFOLLOW_USER = @"api-app/v1/social/unFollowUser"; /// 同意好友申请 static NSString * const SOCIAL_AGREE_FRIEND_REQ = @"api-app/v1/social/agreeFriendReq"; /// 好友申请列表 static NSString * const SOCIAL_GET_FRIEND_REQ_LIST = @"api-app/v1/social/getFriendReqList"; /// 我的关注列表 static NSString * const SOCIAL_GET_FOLLOW_LISST = @"api-app/v1/social/getFollowList"; /// 我的好友列表 static NSString * const SOCIAL_GET_FRIEND_LIST = @"api-app/v1/social/getFriendList"; /// 我的粉丝列表 static NSString * const SOCIAL_GET_FANS_LIST = @"api-app/v1/social/getFansList"; /// 拒绝好友申请 static NSString * const SOCIAL_DENY_FRIEND_REQ = @"api-app/v1/social/denyFriendReq"; /// 添加好友 static NSString * const SOCIAL_ADD_FRIEND_REQ = @"api-app/v1/social/addFriendReq"; /// 获取访客列表 static NSString * const SOCIAL_GET_VISITOR_LIST = @"api-app/v1/social/getVisitorList"; /// 获取足迹列表 static NSString * const SOCIAL_GET_INTERVIEWEE_LIST = @"api-app/v1/social/getIntervieweeList"; /// 添加黑名单 static NSString * const SOCIAL_ADD_BLACK = @"api-app/v1/social/addBlack"; /// 删除黑名单 static NSString * const SOCIAL_DEL_BLACK = @"api-app/v1/social/delBlack"; /// 获取黑名单列表 static NSString * const SOCIAL_GET_BLACK_LIST = @"api-app/v1/social/getBlackList"; /// 遇见(搜索框右侧数据) static NSString * const SOCIAL_GET_PEOPLE_NEARBY = @"api-app/v1/social/getPeopleNearby"; /// 获取遇见分页数据 static NSString * const SOCIAL_GET_PEOPLE_NEARBY_PAGE_LIST = @"api-app/v1/social/getPeopleNearbyPageList"; /// 获得搜索默认关键词 static NSString * const SOCIAL_GET_SEARCH_DEFAULT_KEYWORDS = @"api-app/v1/social/getSearchDefaultKeywords"; /// 猜你喜欢列表 static NSString * const SOCIAL_GET_MY_LIKE = @"api-app/v1/social/getMayLike"; /// 最近看过的用户列表 static NSString * const getRecentlySeenUsersPath = @"api-app/v1/social/getRecentlySeenUsers"; /// 谁看过我列表 static NSString * const getIntervieweeListV2Path = @"api-app/v1/social/getIntervieweeListV2"; /// 我看过谁列表 static NSString * const getVisitorListV2Path = @"api-app/v1/social/getVisitorListV2"; /// 获取用户房间足迹分页 static NSString * const getRtcRoomHisPageListsPath = @"api-app/v1/rtc/getRtcRoomHisPageList"; /// 谁看过我数量统计 static NSString * const getIntervieweeTotalPath = @"api-app/v1/social/getIntervieweeTotal"; /// 未读访客消息数 static NSString * const getIntervieweeUnReadMsgCountPath = @"api-app/v1/social/getIntervieweeUnReadMsgCount"; /// 获取关系墙 static NSString * const getWatchWallHisPath = @"api-app/v1/watch/getWatchWallHis"; /// 获取广播墙 static NSString * const getBroadWallHisPath = @"api-app/v1/watch/getBroadWallHis"; @implementation XYSocialApiManager /// 关注用户 /// @param targetId 目标用户id /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)followUserWithTargetId:(NSString *)targetId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_FOLLOW_USER copy]; config.instructions = @"关注用户"; config.requestParameters = @{@"targetId":targetId}; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 删除好友 /// @param targetId 目标用户id /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)delFriendWithTargetId:(NSString *)targetId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_DEL_FRIEND copy]; config.instructions = @"删除好友"; config.requestParameters = @{@"targetId":targetId}; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 取消关注用户 /// @param targetId 目标用户id /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)unFollowUserWithTargetId:(NSString *)targetId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_UNFOLLOW_USER copy]; config.instructions = @"取消关注用户"; config.requestParameters = @{@"targetId":targetId}; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 同意好友申请 /// @param reqId 好友申请记录的id /// @param optMsg 处理意见 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)agreeFriendReqWithReqId:(NSString *)reqId optMsg:(NSString *)optMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_AGREE_FRIEND_REQ copy]; config.instructions = @"同意好友申请"; if (StringIsEmpty(optMsg)) { config.requestParameters = @{@"reqId":reqId}; }else { config.requestParameters = @{@"reqId":reqId, @"optMsg":optMsg}; } return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 好友申请列表 /// @param pageNum 页码 /// @param pageSize 每页数量 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getFriendReqListWithPageNum:(NSInteger)pageNum pageSize:(NSInteger)pageSize successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_GET_FRIEND_REQ_LIST copy]; config.instructions = @"好友申请列表"; config.requestType = ZYLNetworkRequestTypeGet; if (pageSize == 0) { config.requestParameters = @{@"pageIndex":@(pageNum)}; }else { config.requestParameters = @{@"pageIndex":@(pageNum), @"pageSize":@(pageSize)}; } return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 我的关注列表 /// @param pageNum 页码 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getFollowListWithPageNum:(NSInteger)pageNum userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_GET_FOLLOW_LISST copy]; config.instructions = @"我的关注列表"; config.requestType = ZYLNetworkRequestTypeGet; if (StringIsEmpty(userId)) { config.requestParameters = @{@"pageIndex":@(pageNum)}; }else { config.requestParameters = @{@"pageIndex":@(pageNum), @"userId":userId}; } return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 我的好友列表 /// @param pageNum 页码 /// @param userId 每页数量 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getFriendListWithPageNum:(NSInteger)pageNum userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_GET_FRIEND_LIST copy]; config.instructions = @"我的好友列表"; config.requestType = ZYLNetworkRequestTypeGet; if (StringIsEmpty(userId)) { config.requestParameters = @{@"pageIndex":@(pageNum)}; }else { config.requestParameters = @{@"pageIndex":@(pageNum), @"userId":userId}; } return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 我的粉丝列表 /// @param pageNum 页码 /// @param userId 每页数量 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getFansListWithPageNum:(NSInteger)pageNum userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_GET_FANS_LIST copy]; config.instructions = @"我的粉丝列表"; config.requestType = ZYLNetworkRequestTypeGet; if (StringIsEmpty(userId)) { config.requestParameters = @{@"pageIndex":@(pageNum)}; }else { config.requestParameters = @{@"pageIndex":@(pageNum), @"userId":userId}; } return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 拒绝好友申请 /// @param reqId 好友申请记录的id /// @param optMsg 处理意见 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)denyFriendReqWithReqId:(NSString *)reqId optMsg:(NSString *)optMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_DENY_FRIEND_REQ copy]; config.instructions = @"拒绝好友申请"; if (StringIsEmpty(optMsg)) { config.requestParameters = @{@"reqId":reqId}; }else { config.requestParameters = @{@"reqId":reqId, @"optMsg":optMsg}; } return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 添加好友 /// @param targetId 目标用户id /// @param reqMsg 好友申请时验证信息 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)addFriendReqWithTargetId:(NSString *)targetId reqMsg:(NSString *)reqMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_ADD_FRIEND_REQ copy]; config.instructions = @"添加好友"; if (StringIsEmpty(reqMsg)) { config.requestParameters = @{@"targetId":targetId}; }else { config.requestParameters = @{@"targetId":targetId, @"reqMsg":reqMsg}; } return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 获取访客列表 /// @param pageIndex 页码 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getVisitorListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_GET_VISITOR_LIST copy]; config.instructions = @"获取访客列表"; config.requestType = ZYLNetworkRequestTypeGet; config.requestParameters = @{@"pageIndex":@(pageIndex)}; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 获取足迹列表 /// @param pageIndex 页码 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getIntervieweeListWithPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_GET_INTERVIEWEE_LIST copy]; config.instructions = @"获取足迹列表"; config.requestType = ZYLNetworkRequestTypeGet; config.requestParameters = @{@"pageIndex":@(pageIndex)}; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 添加黑名单 /// @param userId 用户id /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)addBlackWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_ADD_BLACK copy]; config.instructions = @"添加黑名单"; config.requestParameters = @{@"userId":userId}; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 删除黑名单 /// @param userId 用户id /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)delBlackWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_DEL_BLACK copy]; config.instructions = @"删除黑名单"; config.requestParameters = @{@"userId":userId}; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 获取黑名单列表 /// @param pageIndex 当前页码 /// @param lastSeq 序列号 第一次传0 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getBlackListWithPageIndex:(NSInteger)pageIndex lastSeq:(NSString *)lastSeq successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_GET_BLACK_LIST copy]; config.instructions = @"获取黑名单列表"; config.requestType = ZYLNetworkRequestTypeGet; config.requestParameters = @{@"pageIndex":@(pageIndex), @"lastSeq":@([lastSeq integerValue])}; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 遇见(搜索框右侧数据) /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getPeopleNearbySuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_GET_PEOPLE_NEARBY copy]; config.instructions = @"遇见(搜索框右侧数据)"; config.requestType = ZYLNetworkRequestTypeGet; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler: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 { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_GET_PEOPLE_NEARBY_PAGE_LIST copy]; config.instructions = @"获取遇见分页数据"; config.requestType = ZYLNetworkRequestTypeGet; if (userAgeMax >= 41) { userAgeMax = 100; } if (userSex == 0) { config.requestParameters = @{@"pageIndex":@(pageIndex), @"userAgeMin":@(userAgeMin), @"userAgeMax":@(userAgeMax)}; }else { config.requestParameters = @{@"pageIndex":@(pageIndex), @"userSex":@(userSex), @"userAgeMin":@(userAgeMin), @"userAgeMax":@(userAgeMax)}; } return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 获得搜索默认关键词 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getSearchDefaultKeywordsSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_GET_SEARCH_DEFAULT_KEYWORDS copy]; config.instructions = @"获得搜索默认关键词"; config.requestType = ZYLNetworkRequestTypeGet; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 猜你喜欢列表 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getMayLikeSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [SOCIAL_GET_MY_LIKE copy]; config.instructions = @"猜你喜欢列表"; config.requestType = ZYLNetworkRequestTypeGet; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 最近看过的用户列表 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getRecentlySeenUsersSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler { ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [getRecentlySeenUsersPath copy]; config.instructions = @"最近看过的用户列表"; config.requestType = ZYLNetworkRequestTypeGet; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 谁看过我列表 /// @param pageIndex 页码 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getIntervieweeListV2:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler{ ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [getIntervieweeListV2Path copy]; config.instructions = @"谁看过我列表"; config.requestType = ZYLNetworkRequestTypeGet; config.requestParameters = @{@"pageIndex":@(pageIndex)}; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 我看过谁列表 /// @param pageIndex 页码 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getVisitorListV2:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler{ ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [getVisitorListV2Path copy]; config.instructions = @"我看过谁列表"; config.requestType = ZYLNetworkRequestTypeGet; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 获取用户房间足迹分页 /// @param pageIndex 页码 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getRtcRoomHisPageList:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler{ ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [getRtcRoomHisPageListsPath copy]; config.instructions = @"获取用户房间足迹分页"; config.requestType = ZYLNetworkRequestTypeGet; config.requestParameters = @{@"pageIndex":@(pageIndex),@"pageSize":@"20"}; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 谁看过我数量统计 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getIntervieweeTotalSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler{ ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [getIntervieweeTotalPath copy]; config.instructions = @"谁看过我数量统计"; config.requestType = ZYLNetworkRequestTypeGet; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 未读访客消息数 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getIntervieweeUnReadMsgCountSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler{ ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [getIntervieweeUnReadMsgCountPath copy]; config.instructions = @"未读访客消息数"; config.requestType = ZYLNetworkRequestTypeGet; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 获取关系墙 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getWatchWallHisSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler{ ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [getWatchWallHisPath copy]; config.instructions = @"获取关系墙"; config.requestType = ZYLNetworkRequestTypeGet; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } /// 获取广播墙 /// @param successHandler 请求成功 /// @param failureHandler 请求失败 - (NSNumber *)getBroadWallHisSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler{ ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new]; config.urlPath = [getBroadWallHisPath copy]; config.instructions = @"获取广播墙"; config.requestType = ZYLNetworkRequestTypeGet; return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler]; } @end