{ "swagger": "2.0", "info": { "contact": {} }, "paths": { "/admin/login": { "post": { "description": "管理员登陆", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "管理员借口" ], "summary": "管理员登陆", "operationId": "/admin/login", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.AdminLoginInput" } } ], "responses": { "200": { "description": "success", "schema": { "allOf": [ { "$ref": "#/definitions/middleware.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/dto.AdminLoginOutput" } } } ] } } } } } }, "definitions": { "dto.AdminLoginInput": { "type": "object", "required": [ "password", "username" ], "properties": { "password": { "type": "string", "example": "" }, "username": { "type": "string", "example": "" } } }, "dto.AdminLoginOutput": { "type": "object", "properties": { "token": { "type": "string", "example": "token" } } }, "middleware.Response": { "type": "object", "properties": { "data": {}, "errmsg": { "type": "string" }, "errno": { "type": "integer" }, "stack": {}, "trace_id": {} } } } }