1 Star 0 Fork 0

LiuFuDan / devcloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docs.go 721 Bytes
一键复制 编辑 原始数据 按行查看 历史
LiuFuDan 提交于 2022-12-21 17:04 . 初始化maudit
package swagger
import (
"gitee.com/liu-fudan/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"},
},
}
}
1
https://gitee.com/liu-fudan/devcloud.git
git@gitee.com:liu-fudan/devcloud.git
liu-fudan
devcloud
devcloud
055c0a611b21

搜索帮助