瀏覽代碼

feat: 小组列表接口

chenhao 2 年之前
父節點
當前提交
98cc577a37
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 3 0
      src/api/question.ts
  2. 4 0
      types/api.d.ts

+ 3 - 0
src/api/question.ts

@@ -17,7 +17,10 @@ const QuestionApi: DefineApiModule<Question.ApiMap> = {
     },
   },
   getMainQuestionInfo: '/api/question/main/info',
+  /** 大题列表 */
   getMainQuestionList: '/api/question/main/list',
+  /** 小组列表 */
+  getQuestionGroupList: '/api/question/group/list',
   /** 获取大题评卷结构 */
   getQuestionStruct: '/api/mark/question',
 }

+ 4 - 0
types/api.d.ts

@@ -813,6 +813,8 @@ declare module 'api-type' {
     /** 获取大题列表 */
     type GetMainQuestionList = BaseDefine<{ subjectCode: string }, MainQuestionListItem[]>
 
+    type GetQuestionGroupList = BaseDefine<{ subjectCode?: string; mainNumber?: number }>
+
     interface SubQuestionStruct {
       intervalScore: number
       score: number
@@ -881,6 +883,8 @@ declare module 'api-type' {
       editMainQuestion: EditMainQuestion
       getMainQuestionInfo: GetMainQuestionInfo
       getMainQuestionList: GetMainQuestionList
+      /** 小组列表 */
+      getQuestionGroupList: GetQuestionGroupList
       /** 获取大题评卷结构 */
       getQuestionStruct: GetQuestionStruct
     }