123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- // Package docs GENERATED BY SWAG; DO NOT EDIT
- // This file was generated by swaggo/swag
- package docs
- import "github.com/swaggo/swag"
- const docTemplate = `{
- "schemes": {{ marshal .Schemes }},
- "swagger": "2.0",
- "info": {
- "description": "{{escape .Description}}",
- "title": "{{.Title}}",
- "contact": {},
- "version": "{{.Version}}"
- },
- "host": "{{.Host}}",
- "basePath": "{{.BasePath}}",
- "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": {}
- }
- }
- }
- }`
- // SwaggerInfo holds exported Swagger Info so clients can modify it
- var SwaggerInfo = &swag.Spec{
- Version: "",
- Host: "",
- BasePath: "",
- Schemes: []string{},
- Title: "",
- Description: "",
- InfoInstanceName: "swagger",
- SwaggerTemplate: docTemplate,
- }
- func init() {
- swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
- }
|