123456789101112131415161718192021222324252627282930313233 |
- //
- // RQHTTPService+RQDeleteQuestionFavAll.m
- // jiaPei
- //
- // Created by 张嵘 on 2022/8/23.
- // Copyright © 2022 JCZ. All rights reserved.
- //
- #import "RQHTTPService+RQDeleteQuestionFavAll.h"
- @implementation RQHTTPService (RQDeleteQuestionFavAll)
- /**
- 删除全部题目记录
- @param type 1是收藏,2是错题,3是排除的题
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)deleteQuestionFavAllWithType:(RQSaveFavQuestionType)type {
- /// 1. 配置参数
- RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
- subscript[@"user"] = RQObjectIsNil(RQ_USER_MANAGER.currentUser._id)? @0 : RQ_USER_MANAGER.currentUser._id;
- subscript[@"type"] = @(type);
- subscript[@"carType"] = RQ_YDTQuestion_Module.car_type;
- subscript[@"subject"] = RQ_YDTQuestion_Module.subjectStr;
-
- /// 2. 配置参数模型
- RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_POST path:RQ_POST_DeleteQuestionFavAll parameters:subscript.dictionary];
-
- /// 3.发起请求
- return [[[RQHTTPRequest requestWithParameters:paramters]
- enqueueResultClass:RQBaseModel.class]
- rq_parsedResults];
- }
- @end
|