RQYDTQuestionModule.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // RQYDTQuestionModule.h
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/3/28.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #pragma mark - Model
  10. #import "RQYDTExamRuleModel.h"
  11. #import "RQYDTQuestionModel.h"
  12. #import "RQYDTPointModel.h"
  13. #pragma mark - ViewModel
  14. //#import "RQChooseExLibViewModel.h"
  15. #pragma mark - Module
  16. #import "RQExerciseModule.h"
  17. #import "RQYDTUserQuestionModule.h"
  18. #define RQ_YDTQuestion_Module [RQYDTQuestionModule sharedInstance]
  19. NS_ASSUME_NONNULL_BEGIN
  20. @interface RQYDTQuestionModule : NSObject
  21. @property (nonatomic, readwrite, assign) RQHomePageCarType carType;
  22. @property (nonatomic, readwrite, copy) NSString *carTypeStr;
  23. @property (nonatomic, readwrite, assign) RQHomePageSubjectType subject;
  24. @property (nonatomic, readwrite, copy) NSString *subjectStr;
  25. /// 单例
  26. + (instancetype) sharedInstance;
  27. /// 更新题库
  28. - (void)updateDatabaseWithResourcePath:(NSString *)resourcePath;
  29. - (NSInteger)getQuestionVersion;
  30. - (NSString *)getSubjectNameWithSubject:(RQHomePageSubjectType)subject;
  31. - (RQHomePageSubjectType)getSubjectWithSubjectName:(NSString *)subjectName;
  32. - (RQHomePageCarType)getCarTypeWithCarTypeName:(NSString *)carTypeName;
  33. - (NSArray *)getQuestionWithExerciseType:(RQExerciseType)exerciseType;
  34. - (NSArray *)getQuestionWithSubject:(RQHomePageSubjectType)subject exerciseType:(RQExerciseType)exerciseType;
  35. /// 章节练习
  36. - (NSArray *)getChapterArr;
  37. - (NSArray *)getChapterQuestionWithChapterName:(NSString *)chapterName;
  38. /// 强化练习(考点)
  39. - (NSArray *)getPoint;
  40. - (NSArray *)getPointQuestionWithPointID:(NSInteger)pointId;
  41. - (NSData *)getMediaDataWithMediaName:(NSString *)mediaName;
  42. - (NSString *)getCarTypeNameWithCarType:(RQHomePageCarType)carType;
  43. - (NSString *)getCarTypeCNNameWithCarType:(RQHomePageCarType)carType;
  44. @end
  45. NS_ASSUME_NONNULL_END