12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- {
- "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": {}
- }
- }
- }
- }
|