RQHTTPService+RQGetSelectMiQuestionInfoList.m 1007 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // RQHTTPService+RQGetSelectMiQuestionInfoList.m
  3. // SDJK
  4. //
  5. // Created by 张嵘 on 2022/6/28.
  6. //
  7. #import "RQHTTPService+RQGetSelectMiQuestionInfoList.h"
  8. @implementation RQHTTPService (RQGetSelectMiQuestionInfoList)
  9. /**
  10. 查询秘密卷
  11. @return Returns a signal which will send complete, or error.
  12. */
  13. - (RACSignal *)getSelectMiQuestionInfoListWithCategory:(RQMiQuestionType)category gs:(NSString *)gs kemu:(NSString *)kemu {
  14. /// 1. 配置参数
  15. RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
  16. subscript[@"category"] = @(category);
  17. subscript[@"gs"] = gs;
  18. subscript[@"kemu"] = kemu;
  19. /// 2. 配置参数模型
  20. RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_SelectMiQuestionInfoList parameters:subscript.dictionary];
  21. /// 3.发起请求
  22. return [[[RQHTTPRequest requestWithParameters:paramters]
  23. enqueueResultClass:[RQExerciseModel class]]
  24. rq_parsedResults];
  25. }
  26. @end