XYGiftAPIManager.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // XYGiftAPIManager.h
  3. // Timi
  4. //
  5. // Created by 翟玉磊 on 2021/11/16.
  6. //
  7. #import "ZYLAPIManager.h"
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface XYGiftAPIManager : ZYLAPIManager
  10. /// (动态)打赏礼物列表
  11. /// @param successHandler 请求成功
  12. /// @param failureHandler 请求失败
  13. - (NSNumber *)getWishListSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  14. /// 赠送(动态)打赏礼物
  15. /// @param feedId 动态id
  16. /// @param giftId 礼物 id
  17. /// @param quantity 赠送礼物数量
  18. /// @param successHandler 请求成功
  19. /// @param failureHandler 请求失败
  20. - (NSNumber *)sendRewardGiftWithFeedId:(NSString *)feedId giftId:(NSString *)giftId quantity:(NSInteger)quantity SuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  21. /// (动态)打赏礼物记录列表
  22. /// @param feedId 动态id
  23. /// @param pageIndex 页数
  24. /// @param pageSize 每页数量
  25. /// @param successHandler 请求成功
  26. /// @param failureHandler 请求失败
  27. - (NSNumber *)getRewardGiftHisListWithFeedId:(NSString *)feedId pageIndex:(NSInteger)pageIndex pageSize:(NSInteger)pageSize successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  28. @end
  29. NS_ASSUME_NONNULL_END