RQHTTPService+RQGetJsjpSet.m 703 B

123456789101112131415161718192021222324
  1. //
  2. // RQHTTPService+RQGetJsjpSet.m
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/7/22.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQHTTPService+RQGetJsjpSet.h"
  9. @implementation RQHTTPService (RQGetJsjpSet)
  10. - (RACSignal *)getJsjpSet {
  11. /// 1. 配置参数
  12. RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
  13. /// 2. 配置参数模型
  14. RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_JSJP_SET parameters:subscript.dictionary];
  15. /// 3.发起请求
  16. return [[[RQHTTPRequest requestWithParameters:paramters]
  17. enqueueResultClass:[RQDictInfoModel class]]
  18. rq_parsedResults];
  19. }
  20. @end