7 Star 24 Fork 30

go-course / go8

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docs.go 734 Bytes
一键复制 编辑 原始数据 按行查看 历史
Mr.Yu 提交于 2022-10-15 10:41 . 补充mcenter 认证中间件
package swagger
import (
"gitee.com/go-course/go8/projects/devcloud/maudit/version"
"github.com/go-openapi/spec"
)
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"},
},
}
}
Go
1
https://gitee.com/go-course/go8.git
git@gitee.com:go-course/go8.git
go-course
go8
go8
6a8978f41a84

搜索帮助