XYVipAPIManager.m 901 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // XYVipAPIManager.m
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2020/4/4.
  6. // Copyright © 2020 翟玉磊. All rights reserved.
  7. //
  8. #import "XYVipAPIManager.h"
  9. /// 获取会员项目
  10. static NSString * const VIP_GET_VIP_ITEMS = @"api-app/v1/vip/getVipItems";
  11. @implementation XYVipAPIManager
  12. /// 获取会员项目
  13. /// @param successHandler 请求成功
  14. /// @param failureHandler 请求失败
  15. - (NSNumber *)getVipItemsSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler {
  16. ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new];
  17. config.urlPath = [VIP_GET_VIP_ITEMS copy];
  18. config.instructions = @"获取会员项目";
  19. config.requestType = ZYLNetworkRequestTypeGet;
  20. return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler];
  21. }
  22. @end