123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // RQHTTPService+RQGetVideoVip.m
- // jiaPei
- //
- // Created by 张嵘 on 2022/3/4.
- // Copyright © 2022 JCZ. All rights reserved.
- // 获取用户vip信息
- #import "RQHTTPService+RQGetVideoVip.h"
- @implementation RQHTTPService (RQGetVideoVip)
- /**
- 获取用户vip信息
-
- @param userId 用户Id
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)getVideoVipWithUserId:(NSString *)userId {
- /// 1. 配置参数
- RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
- subscript[@"userId"] = @([userId integerValue]);
-
- /// 2. 配置参数模型
- RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_Vip parameters:subscript.dictionary];
-
- /// 3.发起请求
- return [[[RQHTTPRequest requestWithParameters:paramters]
- enqueueResultClass:[RQVideoVipModel class]]
- rq_parsedResults];
- }
- /**
- 获取用户vip信息
-
- @param userId 用户Id
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)getVipWithUserId:(NSString *)userId {
- /// 1. 配置参数
- RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
- subscript[@"userId"] = @([userId integerValue]);
-
- /// 2. 配置参数模型
- RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_Vip parameters:subscript.dictionary];
-
- /// 3.发起请求
- return [[[RQHTTPRequest requestWithParameters:paramters]
- enqueueResultClass:[RQVideoVipModel class]]
- rq_parsedResults];
- }
- @end
|