// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // This file was generated by swaggo/swag 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": { "/api/v1/wx/applet/pay_callback": { "post": { "description": "微信小程序支付回调", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "微信小程序支付回调" } }, "/api/v1/wx/public": { "get": { "description": "微信公众号接入回调", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "微信公众号接入回调" }, "post": { "description": "微信公众号接收事件通知", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "微信公众号接收事件通知" } }, "/apis/v1/wx/applet/pay_callbackv3": { "post": { "description": "微信小程序支付回调", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "callback" ], "summary": "微信小程序支付回调" } } } }` 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: "1.1", Host: "", BasePath: "", Schemes: []string{}, Title: "Project property-callback-gateway's APIs", Description: "This is a gateway server. On the page, you can go to do testing for every API.", } 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{}) }