2020-06-24 17:15:46 +00:00
|
|
|
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|
|
|
// This file was generated by swaggo/swag at
|
2021-02-05 17:46:59 +00:00
|
|
|
// 2021-01-27 22:40:54.1593671 +0800 CST m=+0.052880501
|
2020-06-24 17:15:46 +00:00
|
|
|
|
|
|
|
package docs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
|
|
|
|
"github.com/alecthomas/template"
|
|
|
|
"github.com/swaggo/swag"
|
|
|
|
)
|
|
|
|
|
|
|
|
var doc = `{
|
|
|
|
"swagger": "2.0",
|
|
|
|
"info": {
|
|
|
|
"description": "{{.Description}}",
|
|
|
|
"title": "大厅功能api",
|
|
|
|
"contact": {},
|
|
|
|
"license": {},
|
|
|
|
"version": "1.0"
|
|
|
|
},
|
|
|
|
"host": "localhost:8080",
|
|
|
|
"basePath": "/api/v1",
|
|
|
|
"paths": {}
|
|
|
|
}`
|
|
|
|
|
|
|
|
type swaggerInfo struct {
|
|
|
|
Version string
|
|
|
|
Host string
|
|
|
|
BasePath string
|
|
|
|
Title string
|
|
|
|
Description string
|
|
|
|
}
|
|
|
|
|
|
|
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
|
|
|
var SwaggerInfo swaggerInfo
|
|
|
|
|
|
|
|
type s struct{}
|
|
|
|
|
|
|
|
func (s *s) ReadDoc() string {
|
|
|
|
t, err := template.New("swagger_info").Parse(doc)
|
|
|
|
if err != nil {
|
|
|
|
return doc
|
|
|
|
}
|
|
|
|
|
|
|
|
var tpl bytes.Buffer
|
|
|
|
if err := t.Execute(&tpl, SwaggerInfo); err != nil {
|
|
|
|
return doc
|
|
|
|
}
|
|
|
|
|
|
|
|
return tpl.String()
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
swag.Register(swag.Name, &s{})
|
|
|
|
}
|