123456789101112131415161718192021222324252627 |
- //
- // RQHTTPService+RQGetLearningMaterials.m
- // SDJK
- //
- // Created by 张嵘 on 2022/6/30.
- //
- #import "RQHTTPService+RQGetLearningMaterials.h"
- @implementation RQHTTPService (RQGetLearningMaterials)
- /**
- 获取学习资料
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)getLearningMaterialsList {
- /// 1. 配置参数
- RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
-
- /// 2. 配置参数模型
- RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_LearningMaterialsList parameters:subscript.dictionary];
-
- /// 3.发起请求
- return [[[RQHTTPRequest requestWithParameters:paramters]
- enqueueResultClass:[RQLearningMaterialsModel class]]
- rq_parsedResults];
- }
- @end
|