feat 修改usn类型为string

This commit is contained in:
2026-01-11 15:58:16 +08:00
parent 63c8fb678c
commit 6bc9f18199
36 changed files with 2054 additions and 702 deletions

View File

@@ -16,6 +16,102 @@
"application/json"
],
"paths": {
"/user/answer_question": {
"post": {
"operationId": "User_AnswerQuestion",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/AnswerQuestionResp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/AnswerQuestionReq"
}
}
],
"tags": [
"User"
]
}
},
"/user/generate_question": {
"post": {
"operationId": "User_GenerateQuestion",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GenerateQuestionResp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/GenerateQuestionReq"
}
}
],
"tags": [
"User"
]
}
},
"/user/get_question": {
"post": {
"operationId": "User_GetQuestion",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GetQuestionResp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/GetQuestionReq"
}
}
],
"tags": [
"User"
]
}
},
"/user/info": {
"post": {
"operationId": "User_GetUserInfo",
@@ -50,21 +146,89 @@
}
},
"definitions": {
"AnswerQuestionReq": {
"type": "object",
"properties": {
"sn": {
"type": "string",
"title": "题目唯一标识"
},
"answer": {
"type": "string",
"title": "答案"
}
},
"title": "---------- AnswerQuestion ----------"
},
"AnswerQuestionResp": {
"type": "object",
"properties": {
"answer": {
"type": "string",
"title": "答案"
},
"explanation": {
"type": "string",
"title": "解析"
}
}
},
"GenerateQuestionReq": {
"type": "object",
"properties": {
"num": {
"type": "integer",
"format": "int32",
"title": "生成数量"
},
"Category": {
"type": "string",
"title": "题目类型"
}
},
"title": "---------- GenerateQuestion ----------"
},
"GenerateQuestionResp": {
"type": "object"
},
"GetQuestionReq": {
"type": "object",
"title": "---------- GetQuestion ----------"
},
"GetQuestionResp": {
"type": "object",
"properties": {
"sn": {
"type": "string",
"title": "题目唯一标识"
},
"question": {
"type": "string",
"title": "题干"
},
"options": {
"type": "array",
"items": {
"type": "string"
},
"title": "选项"
}
}
},
"GetUserInfoReq": {
"type": "object",
"properties": {
"usn": {
"type": "string",
"format": "int64"
"type": "string"
}
}
},
"title": "---------- GetUserInfo ----------"
},
"GetUserInfoResp": {
"type": "object",
"properties": {
"usn": {
"type": "string",
"format": "int64"
"type": "string"
},
"name": {
"type": "string"
@@ -76,7 +240,6 @@
"properties": {
"usn": {
"type": "string",
"format": "int64",
"title": "用户ID"
},
"name": {