12345678910111213141516171819202122232425262728293031323334 |
- //
- // RQHTTPService+RQGetActivation.m
- // jiaPei
- //
- // Created by 张嵘 on 2023/1/14.
- // Copyright © 2023 JCZ. All rights reserved.
- //
- #import "RQHTTPService+RQGetActivation.h"
- @implementation RQActivationModel
- @end
- @implementation RQHTTPService (RQGetActivation)
- /**
- 获取学员合作与激活状态
-
- @param userId 用户Id
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)getActivationWithUserId:(NSString *)userId {
- /// 1. 配置参数
- RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
- subscript[@"userId"] = @([userId integerValue]);
-
- /// 2. 配置参数模型
- RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_Activation parameters:subscript.dictionary];
-
- /// 3.发起请求
- return [[[RQHTTPRequest requestWithParameters:paramters]
- enqueueResultClass:[RQActivationModel class]]
- rq_parsedResults];
- }
- @end
|