2 Star 7 Fork 16

go-course / mcube-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
swagger.go 715 Bytes
一键复制 编辑 原始数据 按行查看 历史
Mr.Yu 提交于 2022-05-10 15:25 . 支持go restful
package swagger
import (
"github.com/go-openapi/spec"
"github.com/infraboard/keyauth/version"
)
func Docs(swo *spec.Swagger) {
swo.Info = &spec.Info{
InfoProps: spec.InfoProps{
Title: "BookService",
Description: "Resource for managing Books",
Contact: &spec.ContactInfo{
ContactInfoProps: spec.ContactInfoProps{
Name: "john",
Email: "john@doe.rp",
URL: "http://johndoe.org",
},
},
License: &spec.License{
LicenseProps: spec.LicenseProps{
Name: "MIT",
URL: "http://mit.org",
},
},
Version: version.Short(),
},
}
swo.Tags = []spec.Tag{
{TagProps: spec.TagProps{
Name: "books",
Description: "Managing books"},
},
}
}
1
https://gitee.com/go-course/mcube-demo.git
git@gitee.com:go-course/mcube-demo.git
go-course
mcube-demo
mcube-demo
330cfd9df436

搜索帮助