// // RQHTTPService+RQGetSelectMiQuestionInfoList.m // SDJK // // Created by 张嵘 on 2022/6/28. // #import "RQHTTPService+RQGetSelectMiQuestionInfoList.h" @implementation RQHTTPService (RQGetSelectMiQuestionInfoList) /** 查询秘密卷 @return Returns a signal which will send complete, or error. */ - (RACSignal *)getSelectMiQuestionInfoListWithCategory:(RQMiQuestionType)category gs:(NSString *)gs kemu:(NSString *)kemu { /// 1. 配置参数 RQKeyedSubscript *subscript = [RQKeyedSubscript subscript]; subscript[@"category"] = @(category); subscript[@"gs"] = gs; subscript[@"kemu"] = kemu; /// 2. 配置参数模型 RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_SelectMiQuestionInfoList parameters:subscript.dictionary]; /// 3.发起请求 return [[[RQHTTPRequest requestWithParameters:paramters] enqueueResultClass:[RQExerciseModel class]] rq_parsedResults]; } @end