12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // RQYDTUserQuestionModule.h
- // jiaPei
- //
- // Created by 张嵘 on 2022/3/29.
- // Copyright © 2022 JCZ. All rights reserved.
- //
- #import "RQBaseModel.h"
- #import "RQExerciseModule.h"
- #define RQ_YDT_USER_Question_Module [RQYDTUserQuestionModule sharedInstance]
- NS_ASSUME_NONNULL_BEGIN
- @interface RQYDTUserQuestionModule : RQBaseModel
- @property (nonatomic, readonly, strong) FMDatabase *database;
- @property (nonatomic, readonly, copy) NSString *dbPath;
- @property (nonatomic, readonly, assign) NSInteger doNum;
- /// 单例
- + (instancetype) sharedInstance;
- - (NSInteger)getQuestionVersion;
- /// 收藏
- - (void)collectQuestionWithID:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
- - (void)collectQuestionWithID:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject isUploadFlag:(BOOL)isUploadFlag;
- - (BOOL)getCollectRecordWithQuestionId:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
- - (void)deleteCollectRecordWithQuestionId:(NSInteger)questionId;
- - (void)deleteAllCollectRecord;
- - (void)deleteAllCollectRecordWithCarType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
- - (NSInteger)getCollectQuestionNumWithCarType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
- /// 排除
- - (void)removeQuestionWithID:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
- - (void)removeQuestionWithID:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject isUploadFlag:(BOOL)isUploadFlag;
- - (BOOL)getRemoveRecordWithQuestionId:(NSInteger)questionId;
- - (void)deleteAllRemoveRecord;
- /// 已做
- - (NSInteger)getDoQuestionNum;
- - (NSInteger)getDoQuestionNumWithCarType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
- - (NSInteger)getWrongQuestionNumWithCarType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
- - (void)doQuestionWithID:(NSInteger)questionId myAnswer:(NSInteger)myAnswer trueAnswer:(NSInteger)trueAnswer carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject exerciseType:(RQExerciseType)exerciseType;
- - (void)doQuestionWithID:(NSInteger)questionId myAnswer:(NSInteger)myAnswer trueAnswer:(NSInteger)trueAnswer carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject exerciseType:(RQExerciseType)exerciseType isUploadFlag:(BOOL)isUploadFlag;
- - (BOOL)getDoRecordWithQuestionId:(NSInteger)questionId;
- - (BOOL)getIsRightRecordWithQuestionId:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
- - (void)deleteAllDoRecord;
- - (void)deleteWrongRecordithCarType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
- @end
- NS_ASSUME_NONNULL_END
|