// 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": { "/Account/Login": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "账户服务" ], "summary": "账户登录", "parameters": [ { "description": "登录入参", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.LoginReq" } } ], "responses": { "200": { "description": "返回包括用户信息,token,过期时间", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.LoginRsp" }, "msg": { "type": "string" } } } ] } } } } } }, "definitions": { "request.LoginReq": { "type": "object", "required": [ "clientType", "password", "userName" ], "properties": { "clientType": { "description": "客户端类型,2-PC交易端 3-手机客户端_安卓 4-网页客户端 5-微信客户端 6-手机客户端_苹果", "type": "integer" }, "password": { "description": "密码", "type": "string" }, "userName": { "description": "用户名,可以是LoginID/LoginCode/手机号码", "type": "string" } } }, "response.LoginRsp": { "type": "object", "properties": { "expiresAt": { "description": "过期时间", "type": "integer" }, "loginId": { "description": "登录ID", "type": "integer" }, "token": { "description": "新服务Token", "type": "string" }, "userId": { "description": "用户ID", "type": "integer" } } }, "response.Response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "msg": { "type": "string" } } } }, "securityDefinitions": { "ApiKeyAuth": { "type": "apiKey", "name": "x-token", "in": "header" } } }` // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "0.0.1", Host: "", BasePath: "", Schemes: []string{}, Title: "Swagger Example API", Description: "新接入服务", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, } func init() { swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) }