RQHTTPService+RQSaveFavQuestion.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // RQHTTPService+RQSaveFavQuestion.h
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/8/18.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQHTTPService.h"
  9. /// 新增题目记录
  10. #define RQ_POST_SaveFavQuestion @"student/saveFavQuestion"
  11. #define RQ_POST_SaveFavQuestionNew @"student/saveFavQuestionNew"
  12. typedef NS_ENUM(NSUInteger, RQSaveFavQuestionType) {
  13. /// 收藏
  14. RQSaveFavQuestionType_Collect = 1,
  15. /// 错题
  16. RQSaveFavQuestionType_Wrong,
  17. /// 排除
  18. RQSaveFavQuestionType_Remove,
  19. };
  20. NS_ASSUME_NONNULL_BEGIN
  21. @interface RQHTTPService (RQSaveFavQuestion)
  22. /**
  23. 新增题目记录
  24. @param questionId 题目ID
  25. @param type 1是收藏,2是错题,3是排除的题
  26. @return Returns a signal which will send complete, or error.
  27. */
  28. - (RACSignal *)saveFavQuestionWithQuestionId:(NSInteger)questionId type:(RQSaveFavQuestionType)type;
  29. /**
  30. 新增题目记录 2025-6-17 批量
  31. @param qId 收藏
  32. @param eId 错题
  33. @return Returns a signal which will send complete, or error.
  34. */
  35. - (RACSignal *)saveFavQuestionWithQuestionIdNew:(NSString*)qId eId:(NSString*)eId;
  36. @end
  37. NS_ASSUME_NONNULL_END