XYWishAPIManager.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // XYWishAPIManager.h
  3. // Timi
  4. //
  5. // Created by 翟玉磊 on 2021/10/20.
  6. //
  7. #import "ZYLAPIManager.h"
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface XYWishAPIManager : ZYLAPIManager
  10. /// 获取个人许愿列表
  11. /// @param successHandler 请求成功
  12. /// @param failureHandler 请求失败
  13. - (NSNumber *)getWishListSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  14. /// 获取个人许愿完成的列表
  15. /// @param successHandler 请求成功
  16. /// @param failureHandler 请求失败
  17. - (NSNumber *)getWishCompleteListWithPage:(NSInteger)page successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  18. /// 获取个人开启的许愿任务
  19. /// @param userId 目标用户ID
  20. /// @param successHandler 请求成功
  21. /// @param failureHandler 请求失败
  22. - (NSNumber *)getWishOpenedDetailWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  23. /// 设置心愿任务开关
  24. /// @param wishTaskId 许愿任务id
  25. /// @param status 0关 1开
  26. /// @param successHandler 请求成功
  27. /// @param failureHandler 请求失败
  28. - (NSNumber *)setWishTaskSwitchWithWishTaskId:(NSString *)wishTaskId status:(NSInteger)status successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  29. @end
  30. NS_ASSUME_NONNULL_END