123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // XYWishAPIManager.h
- // Timi
- //
- // Created by 翟玉磊 on 2021/10/20.
- //
- #import "ZYLAPIManager.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface XYWishAPIManager : ZYLAPIManager
- /// 获取个人许愿列表
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getWishListSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取个人许愿完成的列表
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getWishCompleteListWithPage:(NSInteger)page successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取个人开启的许愿任务
- /// @param userId 目标用户ID
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getWishOpenedDetailWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 设置心愿任务开关
- /// @param wishTaskId 许愿任务id
- /// @param status 0关 1开
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)setWishTaskSwitchWithWishTaskId:(NSString *)wishTaskId status:(NSInteger)status successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- @end
- NS_ASSUME_NONNULL_END
|