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