{ "swagger": "2.0", "info": { "title": "rs_common.proto", "version": "version not set" }, "tags": [ { "name": "Gateway" }, { "name": "Qgdzs" }, { "name": "Scene" }, { "name": "User" } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/qgdzs/auth/generate_question": { "post": { "summary": "生成题目", "operationId": "Qgdzs_GenerateQuestion", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/GenerateQuestionResp" } } }, "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/GenerateQuestionReq" } } ], "tags": [ "Qgdzs" ] } }, "/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": "Qgdzs_GetQuestion", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/GetQuestionResp" } } }, "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/GetQuestionReq" } } ], "tags": [ "Qgdzs" ] } }, "/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", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/GetUserInfoResp" } } }, "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/GetUserInfoReq" } } ], "tags": [ "User" ] } } }, "definitions": { "ActionResp": { "type": "object" }, "AnswerQuestionReq": { "type": "object", "properties": { "usn": { "type": "string" }, "sn": { "type": "string", "title": "题目唯一标识" }, "answer": { "type": "string", "title": "答案" } }, "title": "---------- AnswerQuestion ----------" }, "AnswerQuestionResp": { "type": "object", "properties": { "answer": { "type": "string", "title": "答案" }, "explanation": { "type": "string", "title": "解析" } } }, "EnterResp": { "type": "object", "properties": { "SceneSID": { "type": "string", "title": "场景服务ID" }, "UniqueNo": { "type": "string", "title": "副本唯一编号" }, "MessageID": { "type": "integer", "format": "int32", "title": "发送给客户端的消息ID" }, "Payload": { "type": "string", "format": "byte", "title": "消息负载" } } }, "GenerateQuestionReq": { "type": "object", "properties": { "num": { "type": "integer", "format": "int32", "title": "生成数量" }, "category": { "type": "string", "title": "题目类型" } }, "title": "---------- GenerateQuestion ----------" }, "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": { "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", "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": "记录" } } }, "GetUserInfoReq": { "type": "object", "properties": { "usn": { "type": "string" } }, "title": "---------- GetUserInfo ----------" }, "GetUserInfoResp": { "type": "object", "properties": { "usn": { "type": "string" }, "name": { "type": "string" } } }, "KickUserResp": { "type": "object" }, "LeaveResp": { "type": "object" }, "PhoneLoginResp": { "type": "object", "properties": { "usn": { "type": "string", "title": "用户ID" }, "name": { "type": "string", "title": "用户名" } } }, "ToClientResp": { "type": "object" }, "WxMiniLoginResp": { "type": "object", "properties": { "usn": { "type": "string", "title": "用户ID" }, "name": { "type": "string", "title": "用户名" } } } } }