// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // This file was generated by swaggo/swag at // 2019-09-03 23:59:41.1295277 +0800 CST m=+0.038362901 package docs import ( "bytes" "encoding/json" "strings" "github.com/alecthomas/template" "github.com/swaggo/swag" ) var doc = `{ "schemes": {{ marshal .Schemes }}, "swagger": "2.0", "info": { "description": "{{.Description}}", "title": "{{.Title}}", "contact": {}, "license": {}, "version": "{{.Version}}" }, "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { "/user/changePassWord": { "post": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "用户修改密码", "parameters": [ { "description": "用户修改密码", "name": "data", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/api.ChangePassWordStutrc" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", "schema": { "type": "string" } } } } }, "/user/login": { "post": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "用户登录", "parameters": [ { "description": "用户登录接口", "name": "data", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/api.RegistAndLoginStuct" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}", "schema": { "type": "string" } } } } }, "/user/regist": { "post": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "用户注册账号", "parameters": [ { "description": "用户注册接口", "name": "data", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/api.RegistAndLoginStuct" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}", "schema": { "type": "string" } } } } } }, "definitions": { "api.ChangePassWordStutrc": { "type": "object", "properties": { "newPassWord": { "type": "string" }, "passWord": { "type": "string" }, "userName": { "type": "string" } } }, "api.RegistAndLoginStuct": { "type": "object", "properties": { "passWord": { "type": "string" }, "userName": { "type": "string" } } } } }` type swaggerInfo struct { Version string Host string BasePath string Schemes []string Title string Description string } // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = swaggerInfo{ Version: "", Host: "", BasePath: "", Schemes: []string{}, Title: "", Description: "", } type s struct{} func (s *s) ReadDoc() string { sInfo := SwaggerInfo sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1) t, err := template.New("swagger_info").Funcs(template.FuncMap{ "marshal": func(v interface{}) string { a, _ := json.Marshal(v) return string(a) }, }).Parse(doc) if err != nil { return doc } var tpl bytes.Buffer if err := t.Execute(&tpl, sInfo); err != nil { return doc } return tpl.String() } func init() { swag.Register(swag.Name, &s{}) }