RQHTTPService+RQGetYyxcSet.m 807 B

1234567891011121314151617181920212223242526
  1. //
  2. // RQHTTPService+RQGetYyxcSet.m
  3. // YYXC
  4. //
  5. // Created by 张嵘 on 2023/3/15.
  6. // Copyright © 2023 JCZ. All rights reserved.
  7. //
  8. #import "RQHTTPService+RQGetYyxcSet.h"
  9. #define RQ_GET_YYXC_SET @"https://nbjk.zzxcx.net/nbjk-admin/open-api/system/dict/data/type/yyxc_set"
  10. @implementation RQHTTPService (RQGetYyxcSet)
  11. - (RACSignal *)getYyxcSet {
  12. /// 1. 配置参数
  13. RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
  14. /// 2. 配置参数模型
  15. RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_YYXC_SET parameters:subscript.dictionary];
  16. /// 3.发起请求
  17. return [[[RQHTTPRequest requestWithParameters:paramters]
  18. enqueueResultClass:[RQDictInfoModel class]]
  19. rq_parsedResults];
  20. }
  21. @end