123456789101112131415161718192021222324252627282930 |
- //
- // RQHTTPService+SelectTestK14QuestionInfoList.m
- // SDJK
- //
- // Created by Ning.ge on 2023/12/21.
- //
- #import "RQHTTPService+SelectTestK14QuestionInfoList.h"
- @implementation RQHTTPService (SelectTestK14QuestionInfoList)
- /**
- 取模拟考试题库
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)getSelectTestK14QuestionInfoList:(NSString*)model subject:(NSString *)subject{
- /// 1. 配置参数
- RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
- subscript[@"model"] = model;
- subscript[@"subject"] = subject;
- /// 2. 配置参数模型
- RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_SelectTestK14QuestionInfoList parameters:subscript.dictionary];
-
- /// 3.发起请求
- return [[[RQHTTPRequest requestWithParameters:paramters]
- enqueueResultClass:[RQExerciseModel class]]
- rq_parsedResults];
- }
- @end
|