123456789101112131415161718192021222324252627282930313233343536 |
- //
- // RQHTTPService+RQGetMyQuestionFavs.m
- // jiaPei
- //
- // Created by 张嵘 on 2022/8/23.
- // Copyright © 2022 JCZ. All rights reserved.
- //
- #import "RQHTTPService+RQGetMyQuestionFavs.h"
- @implementation RQHTTPService (RQGetMyQuestionFavs)
- /**
- 获取题目记录
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)getMyQuestionFavs {
- /// 1. 配置参数
- RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
- subscript[@"user"] = RQObjectIsNil(RQ_USER_MANAGER.currentUser._id)? @0 : RQ_USER_MANAGER.currentUser._id;
- // subscript[@"subject"] = (RQ_YDTQuestion_Module.subject == RQHomePageSubjectType_SubjectFour)? @"4" : @"1";
- subscript[@"carType"] = RQ_YDTQuestion_Module.car_type;
- subscript[@"isPage"] = @(0);
- subscript[@"pageSize"] = @(0);
- subscript[@"currentPage"] = @(0);
- // subscript[@"type"] = @(0);
-
- /// 2. 配置参数模型
- RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_POST path:RQ_POST_GetMyQuestionFavs parameters:subscript.dictionary];
-
- /// 3.发起请求
- return [[[RQHTTPRequest requestWithParameters:paramters]
- enqueueResultClass:RQMyQuestionFavsModel.class]
- rq_parsedResults];
- }
- @end
|