RQHTTPService+RQGetConfigKey.m 927 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // RQHTTPService+RQGetConfigKey.m
  3. // YYXC
  4. //
  5. // Created by 张嵘 on 2022/4/22.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQHTTPService+RQGetConfigKey.h"
  9. @implementation RQHTTPService (RQGetConfigKey)
  10. /**
  11. 根据字典类型查询字典数据信息
  12. @param dictType 路径
  13. @return Returns a signal which will send complete, or error.
  14. */
  15. - (RACSignal *)getConfigKeyWithDictType:(NSString *)dictType {
  16. /// 1. 配置参数
  17. RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
  18. /// 2. 配置参数模型
  19. RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:[NSString stringWithFormat:@"%@/%@",RQ_GET_ConfigKey,dictType] parameters:subscript.dictionary];
  20. /// 3.发起请求
  21. return [[[RQHTTPRequest requestWithParameters:paramters]
  22. enqueueResultClass:[RQBaseModel class]]
  23. rq_parsedResults];
  24. }
  25. @end