{ "swagger": "2.0", "info": { "title": "service_user.proto", "version": "version not set" }, "tags": [ { "name": "User" } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/user/login": { "post": { "operationId": "User_Login", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/LoginResp" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/LoginReq" } } ], "tags": [ "User" ] } } }, "definitions": { "LoginReq": { "type": "object", "properties": { "phone": { "type": "string", "title": "手机号" }, "code": { "type": "string", "title": "验证码" } } }, "LoginResp": { "type": "object", "properties": { "uid": { "type": "integer", "format": "int32", "title": "用户ID" } } }, "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" } } } } } }