1234567891011121314151617181920212223242526272829 |
- //
- // XYVipAPIManager.m
- // Starbuds
- //
- // Created by 翟玉磊 on 2020/4/4.
- // Copyright © 2020 翟玉磊. All rights reserved.
- //
- #import "XYVipAPIManager.h"
- /// 获取会员项目
- static NSString * const VIP_GET_VIP_ITEMS = @"api-app/v1/vip/getVipItems";
- @implementation XYVipAPIManager
- /// 获取会员项目
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getVipItemsSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler {
-
- ZYLDataAPIConfiguration *config = [ZYLDataAPIConfiguration new];
- config.urlPath = [VIP_GET_VIP_ITEMS copy];
- config.instructions = @"获取会员项目";
- config.requestType = ZYLNetworkRequestTypeGet;
-
- return [super dispatchDataTaskWithConfiguration:config successHandler:successHandler failureHandler:failureHandler];
- }
- @end
|