1234567891011121314151617181920212223242526272829303132333435 |
- //
- // RQHTTPService+RQSaveFavQuestion.h
- // jiaPei
- //
- // Created by 张嵘 on 2022/8/18.
- // Copyright © 2022 JCZ. All rights reserved.
- //
- #import "RQHTTPService.h"
- /// 新增题目记录
- #define RQ_POST_SaveFavQuestion @"student/saveFavQuestion"
- typedef NS_ENUM(NSUInteger, RQSaveFavQuestionType) {
- /// 收藏
- RQSaveFavQuestionType_Collect = 1,
- /// 错题
- RQSaveFavQuestionType_Wrong,
- /// 排除
- RQSaveFavQuestionType_Remove,
- };
- NS_ASSUME_NONNULL_BEGIN
- @interface RQHTTPService (RQSaveFavQuestion)
- /**
- 新增题目记录
- @param questionId 题目ID
- @param type 1是收藏,2是错题,3是排除的题
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)saveFavQuestionWithQuestionId:(NSInteger)questionId type:(RQSaveFavQuestionType)type;
- @end
- NS_ASSUME_NONNULL_END
|