This repository has been archived on 2026-01-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Game/Public/Proto/ServerInternal/gen/service_user.swagger.json

118 lines
2.2 KiB
JSON

{
"swagger": "2.0",
"info": {
"title": "service_user.proto",
"version": "version not set"
},
"tags": [
{
"name": "User"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/user/info": {
"post": {
"operationId": "User_GetUserInfo",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GetUserInfoResp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/GetUserInfoReq"
}
}
],
"tags": [
"User"
]
}
}
},
"definitions": {
"GetUserInfoReq": {
"type": "object",
"properties": {
"usn": {
"type": "string",
"format": "int64"
}
}
},
"GetUserInfoResp": {
"type": "object",
"properties": {
"usn": {
"type": "string",
"format": "int64"
},
"name": {
"type": "string"
}
}
},
"LoginResp": {
"type": "object",
"properties": {
"usn": {
"type": "string",
"format": "int64",
"title": "用户ID"
},
"name": {
"type": "string",
"title": "用户名"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}