RQYDTUserQuestionModule.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // RQYDTUserQuestionModule.h
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/3/29.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQBaseModel.h"
  9. #import "RQExerciseModule.h"
  10. #define RQ_YDT_USER_Question_Module [RQYDTUserQuestionModule sharedInstance]
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface RQYDTUserQuestionModule : RQBaseModel
  13. @property (nonatomic, readonly, strong) FMDatabase *database;
  14. @property (nonatomic, readonly, copy) NSString *dbPath;
  15. @property (nonatomic, readonly, assign) NSInteger doNum;
  16. /// 单例
  17. + (instancetype) sharedInstance;
  18. - (NSInteger)getQuestionVersion;
  19. /// 收藏
  20. - (void)collectQuestionWithID:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
  21. - (void)collectQuestionWithID:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject isUploadFlag:(BOOL)isUploadFlag;
  22. - (BOOL)getCollectRecordWithQuestionId:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
  23. - (void)deleteCollectRecordWithQuestionId:(NSInteger)questionId;
  24. - (void)deleteAllCollectRecord;
  25. - (void)deleteAllCollectRecordWithCarType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
  26. - (NSInteger)getCollectQuestionNumWithCarType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
  27. /// 排除
  28. - (void)removeQuestionWithID:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
  29. - (void)removeQuestionWithID:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject isUploadFlag:(BOOL)isUploadFlag;
  30. - (BOOL)getRemoveRecordWithQuestionId:(NSInteger)questionId;
  31. - (void)deleteAllRemoveRecord;
  32. /// 已做
  33. - (NSInteger)getDoQuestionNum;
  34. - (NSInteger)getDoQuestionNumWithCarType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
  35. - (NSInteger)getWrongQuestionNumWithCarType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
  36. - (void)doQuestionWithID:(NSInteger)questionId myAnswer:(NSInteger)myAnswer trueAnswer:(NSInteger)trueAnswer carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject exerciseType:(RQExerciseType)exerciseType;
  37. - (void)doQuestionWithID:(NSInteger)questionId myAnswer:(NSInteger)myAnswer trueAnswer:(NSInteger)trueAnswer carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject exerciseType:(RQExerciseType)exerciseType isUploadFlag:(BOOL)isUploadFlag;
  38. - (BOOL)getDoRecordWithQuestionId:(NSInteger)questionId;
  39. - (BOOL)getIsRightRecordWithQuestionId:(NSInteger)questionId carType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
  40. - (void)deleteAllDoRecord;
  41. - (void)deleteWrongRecordithCarType:(RQHomePageCarType)carType subject:(RQHomePageSubjectType)subject;
  42. @end
  43. NS_ASSUME_NONNULL_END