feat usn 类型改成int64
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
},
|
||||
"/qgdzs/auth/get_record": {
|
||||
"post": {
|
||||
"summary": "获取答题记录",
|
||||
"summary": "---------- 答题记录 ----------\n获取答题记录",
|
||||
"operationId": "Qgdzs_GetRecord",
|
||||
"responses": {
|
||||
"200": {
|
||||
@@ -79,15 +79,15 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/qgdzs/open/answer_question": {
|
||||
"/qgdzs/open/category/answer": {
|
||||
"post": {
|
||||
"summary": "回答题目",
|
||||
"operationId": "Qgdzs_AnswerQuestion",
|
||||
"operationId": "Qgdzs_CategoryAnswerQuestion",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/AnswerQuestionResp"
|
||||
"$ref": "#/definitions/CategoryAnswerQuestionResp"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -97,7 +97,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/AnswerQuestionReq"
|
||||
"$ref": "#/definitions/CategoryAnswerQuestionReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -106,9 +106,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/qgdzs/open/get_all_category": {
|
||||
"/qgdzs/open/category/get_category": {
|
||||
"post": {
|
||||
"summary": "获取所有类目",
|
||||
"summary": "---------- 类目答题 ----------\n获取所有类目",
|
||||
"operationId": "Qgdzs_GetAllCategory",
|
||||
"responses": {
|
||||
"200": {
|
||||
@@ -133,15 +133,15 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/qgdzs/open/get_question": {
|
||||
"/qgdzs/open/category/question": {
|
||||
"post": {
|
||||
"summary": "获取题目",
|
||||
"operationId": "Qgdzs_GetQuestion",
|
||||
"operationId": "Qgdzs_CategoryGetQuestion",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/GetQuestionResp"
|
||||
"$ref": "#/definitions/CategoryGetQuestionResp"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -151,7 +151,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/GetQuestionReq"
|
||||
"$ref": "#/definitions/CategoryGetQuestionReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -187,6 +187,114 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/qgdzs/open/quickly/answer": {
|
||||
"post": {
|
||||
"summary": "回答题目",
|
||||
"operationId": "Qgdzs_QuicklyAnswerQuestion",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/QuicklyAnswerQuestionResp"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/QuicklyAnswerQuestionReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Qgdzs"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/qgdzs/open/quickly/question": {
|
||||
"post": {
|
||||
"summary": "---------- 快速答题 ----------\n获取题目",
|
||||
"operationId": "Qgdzs_QuicklyGetQuestion",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/QuicklyGetQuestionResp"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/QuicklyGetQuestionReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Qgdzs"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/qgdzs/open/random/answer": {
|
||||
"post": {
|
||||
"summary": "回答题目",
|
||||
"operationId": "Qgdzs_RandomAnswerQuestion",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/RandomAnswerQuestionResp"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/RandomAnswerQuestionReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Qgdzs"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/qgdzs/open/random/question": {
|
||||
"post": {
|
||||
"summary": "---------- 随机答题 ----------\n获取题目",
|
||||
"operationId": "Qgdzs_RandomGetQuestion",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/RandomGetQuestionResp"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/RandomGetQuestionReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Qgdzs"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/user/auth/info": {
|
||||
"post": {
|
||||
"summary": "获取用户信息",
|
||||
@@ -219,14 +327,16 @@
|
||||
"ActionResp": {
|
||||
"type": "object"
|
||||
},
|
||||
"AnswerQuestionReq": {
|
||||
"CategoryAnswerQuestionReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"usn": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"sn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "题目唯一标识"
|
||||
},
|
||||
"answer": {
|
||||
@@ -234,9 +344,9 @@
|
||||
"title": "答案"
|
||||
}
|
||||
},
|
||||
"title": "---------- AnswerQuestion ----------"
|
||||
"title": "---------- CategoryAnswerQuestion ----------"
|
||||
},
|
||||
"AnswerQuestionResp": {
|
||||
"CategoryAnswerQuestionResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"answer": {
|
||||
@@ -249,15 +359,58 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"CategoryGetQuestionReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"category_sn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "类目唯一标识"
|
||||
}
|
||||
},
|
||||
"title": "---------- CategoryGetQuestion ----------"
|
||||
},
|
||||
"CategoryGetQuestionResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"sn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "题目唯一标识"
|
||||
},
|
||||
"question": {
|
||||
"type": "string",
|
||||
"title": "题干"
|
||||
},
|
||||
"options": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "选项"
|
||||
},
|
||||
"category": {
|
||||
"type": "string",
|
||||
"title": "题目类型"
|
||||
},
|
||||
"difficulty": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"title": "难度"
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnterResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"SceneSID": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "场景服务ID"
|
||||
},
|
||||
"UniqueNo": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "副本唯一编号"
|
||||
},
|
||||
"MessageID": {
|
||||
@@ -291,6 +444,7 @@
|
||||
"properties": {
|
||||
"sn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "唯一标识"
|
||||
},
|
||||
"category": {
|
||||
@@ -321,6 +475,7 @@
|
||||
"properties": {
|
||||
"question_sn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "题目唯一标识"
|
||||
}
|
||||
},
|
||||
@@ -355,50 +510,12 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"GetQuestionReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"category_sn": {
|
||||
"type": "string",
|
||||
"title": "类目唯一标识"
|
||||
}
|
||||
},
|
||||
"title": "---------- GetQuestion ----------"
|
||||
},
|
||||
"GetQuestionResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"sn": {
|
||||
"type": "string",
|
||||
"title": "题目唯一标识"
|
||||
},
|
||||
"question": {
|
||||
"type": "string",
|
||||
"title": "题干"
|
||||
},
|
||||
"options": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "选项"
|
||||
},
|
||||
"category": {
|
||||
"type": "string",
|
||||
"title": "题目类型"
|
||||
},
|
||||
"difficulty": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"title": "难度"
|
||||
}
|
||||
}
|
||||
},
|
||||
"GetRecordItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"question_sn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "题目唯一标识"
|
||||
},
|
||||
"question": {
|
||||
@@ -433,7 +550,8 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"usn": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"page": {
|
||||
"type": "integer",
|
||||
@@ -468,7 +586,8 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"usn": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
}
|
||||
},
|
||||
"title": "---------- GetUserInfo ----------"
|
||||
@@ -477,7 +596,8 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"usn": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
@@ -495,6 +615,7 @@
|
||||
"properties": {
|
||||
"usn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "用户ID"
|
||||
},
|
||||
"name": {
|
||||
@@ -503,6 +624,138 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"QuicklyAnswerQuestionReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"usn": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"sn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "题目唯一标识"
|
||||
},
|
||||
"answer": {
|
||||
"type": "string",
|
||||
"title": "答案"
|
||||
}
|
||||
},
|
||||
"title": "---------- QuicklyAnswerQuestion ----------"
|
||||
},
|
||||
"QuicklyAnswerQuestionResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"answer": {
|
||||
"type": "string",
|
||||
"title": "答案"
|
||||
},
|
||||
"explanation": {
|
||||
"type": "string",
|
||||
"title": "解析"
|
||||
}
|
||||
}
|
||||
},
|
||||
"QuicklyGetQuestionReq": {
|
||||
"type": "object",
|
||||
"title": "---------- QuicklyGetQuestion ----------"
|
||||
},
|
||||
"QuicklyGetQuestionResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"sn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "题目唯一标识"
|
||||
},
|
||||
"question": {
|
||||
"type": "string",
|
||||
"title": "题干"
|
||||
},
|
||||
"options": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "选项"
|
||||
},
|
||||
"category": {
|
||||
"type": "string",
|
||||
"title": "题目类型"
|
||||
},
|
||||
"difficulty": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"title": "难度"
|
||||
}
|
||||
}
|
||||
},
|
||||
"RandomAnswerQuestionReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"usn": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"sn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "题目唯一标识"
|
||||
},
|
||||
"answer": {
|
||||
"type": "string",
|
||||
"title": "答案"
|
||||
}
|
||||
},
|
||||
"title": "---------- RandomAnswerQuestion ----------"
|
||||
},
|
||||
"RandomAnswerQuestionResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"answer": {
|
||||
"type": "string",
|
||||
"title": "答案"
|
||||
},
|
||||
"explanation": {
|
||||
"type": "string",
|
||||
"title": "解析"
|
||||
}
|
||||
}
|
||||
},
|
||||
"RandomGetQuestionReq": {
|
||||
"type": "object",
|
||||
"title": "---------- RandomGetQuestion ----------"
|
||||
},
|
||||
"RandomGetQuestionResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"sn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "题目唯一标识"
|
||||
},
|
||||
"question": {
|
||||
"type": "string",
|
||||
"title": "题干"
|
||||
},
|
||||
"options": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "选项"
|
||||
},
|
||||
"category": {
|
||||
"type": "string",
|
||||
"title": "题目类型"
|
||||
},
|
||||
"difficulty": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"title": "难度"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ToClientResp": {
|
||||
"type": "object"
|
||||
},
|
||||
@@ -511,6 +764,7 @@
|
||||
"properties": {
|
||||
"usn": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "用户ID"
|
||||
},
|
||||
"name": {
|
||||
|
||||
Reference in New Issue
Block a user