feat 环境

This commit is contained in:
2026-01-24 11:15:41 +08:00
parent 4aa48a822e
commit 30ba2e8994
27 changed files with 3783 additions and 930 deletions

View File

@@ -8,6 +8,9 @@
{
"name": "Gateway"
},
{
"name": "Qgdzs"
},
{
"name": "Scene"
},
@@ -22,37 +25,10 @@
"application/json"
],
"paths": {
"/user/answer_question": {
"post": {
"summary": "回答题目",
"operationId": "User_AnswerQuestion",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/AnswerQuestionResp"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/AnswerQuestionReq"
}
}
],
"tags": [
"User"
]
}
},
"/user/generate_question": {
"/qgdzs/auth/generate_question": {
"post": {
"summary": "生成题目",
"operationId": "User_GenerateQuestion",
"operationId": "Qgdzs_GenerateQuestion",
"responses": {
"200": {
"description": "A successful response.",
@@ -72,14 +48,95 @@
}
],
"tags": [
"User"
"Qgdzs"
]
}
},
"/user/get_question": {
"/qgdzs/auth/get_record": {
"post": {
"summary": "获取答题记录",
"operationId": "Qgdzs_GetRecord",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GetRecordResp"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/GetRecordReq"
}
}
],
"tags": [
"Qgdzs"
]
}
},
"/qgdzs/open/answer_question": {
"post": {
"summary": "回答题目",
"operationId": "Qgdzs_AnswerQuestion",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/AnswerQuestionResp"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/AnswerQuestionReq"
}
}
],
"tags": [
"Qgdzs"
]
}
},
"/qgdzs/open/get_all_category": {
"post": {
"summary": "获取所有类目",
"operationId": "Qgdzs_GetAllCategory",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GetAllCategoryResp"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/GetAllCategoryReq"
}
}
],
"tags": [
"Qgdzs"
]
}
},
"/qgdzs/open/get_question": {
"post": {
"summary": "获取题目",
"operationId": "User_GetQuestion",
"operationId": "Qgdzs_GetQuestion",
"responses": {
"200": {
"description": "A successful response.",
@@ -99,11 +156,38 @@
}
],
"tags": [
"User"
"Qgdzs"
]
}
},
"/user/info": {
"/qgdzs/open/get_question_info": {
"post": {
"summary": "获取具体的题目",
"operationId": "Qgdzs_GetQuestionInfo",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GetQuestionInfoResp"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/GetQuestionInfoReq"
}
}
],
"tags": [
"Qgdzs"
]
}
},
"/user/auth/info": {
"post": {
"summary": "获取用户信息",
"operationId": "User_GetUserInfo",
@@ -138,6 +222,9 @@
"AnswerQuestionReq": {
"type": "object",
"properties": {
"usn": {
"type": "string"
},
"sn": {
"type": "string",
"title": "题目唯一标识"
@@ -203,8 +290,83 @@
"GenerateQuestionResp": {
"type": "object"
},
"GetAllCategoryItem": {
"type": "object",
"properties": {
"sn": {
"type": "string",
"title": "唯一标识"
},
"category": {
"type": "string",
"title": "类目"
}
}
},
"GetAllCategoryReq": {
"type": "object",
"title": "---------- GetAllCategory ----------"
},
"GetAllCategoryResp": {
"type": "object",
"properties": {
"categories": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/GetAllCategoryItem"
},
"title": "类目"
}
}
},
"GetQuestionInfoReq": {
"type": "object",
"properties": {
"question_sn": {
"type": "string",
"title": "题目唯一标识"
}
},
"title": "---------- GetQuestionInfo ----------"
},
"GetQuestionInfoResp": {
"type": "object",
"properties": {
"question": {
"type": "string",
"title": "题干"
},
"options": {
"type": "array",
"items": {
"type": "string"
},
"title": "选项"
},
"category": {
"type": "string",
"title": "类目"
},
"difficulty": {
"type": "integer",
"format": "int32",
"title": "难度"
},
"explanation": {
"type": "string",
"title": "解析"
}
}
},
"GetQuestionReq": {
"type": "object",
"properties": {
"category_sn": {
"type": "string",
"title": "类目唯一标识"
}
},
"title": "---------- GetQuestion ----------"
},
"GetQuestionResp": {
@@ -224,6 +386,85 @@
"type": "string"
},
"title": "选项"
},
"category": {
"type": "string",
"title": "题目类型"
},
"difficulty": {
"type": "integer",
"format": "int32",
"title": "难度"
}
}
},
"GetRecordItem": {
"type": "object",
"properties": {
"question_sn": {
"type": "string",
"title": "题目唯一标识"
},
"question": {
"type": "string",
"title": "题干"
},
"difficulty": {
"type": "integer",
"format": "int32",
"title": "难度"
},
"category": {
"type": "string",
"title": "题目类型"
},
"question_answer": {
"type": "string",
"title": "题目答案"
},
"answer": {
"type": "string",
"title": "用户答案"
},
"create_time": {
"type": "string",
"format": "int64",
"title": "创建时间"
}
}
},
"GetRecordReq": {
"type": "object",
"properties": {
"usn": {
"type": "string"
},
"page": {
"type": "integer",
"format": "int32"
},
"page_size": {
"type": "integer",
"format": "int32"
}
},
"title": "---------- GetRecord ----------"
},
"GetRecordResp": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"format": "int32",
"title": "总数"
},
"records": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/GetRecordItem"
},
"title": "记录"
}
}
},
@@ -253,7 +494,7 @@
"LeaveResp": {
"type": "object"
},
"LoginResp": {
"PhoneLoginResp": {
"type": "object",
"properties": {
"usn": {
@@ -268,6 +509,19 @@
},
"ToClientResp": {
"type": "object"
},
"WxMiniLoginResp": {
"type": "object",
"properties": {
"usn": {
"type": "string",
"title": "用户ID"
},
"name": {
"type": "string",
"title": "用户名"
}
}
}
}
}