增加设置文档协议方法

This commit is contained in:
白茶清欢 2024-08-14 14:59:58 +08:00
parent 7c7fd8223b
commit 75edf3ff0c

View File

@ -54,6 +54,16 @@ type Generate struct {
docData *define.OpenapiDoc
}
// SetLicense 设置文档协议
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 14:56 2024/8/14
func (g *Generate) SetLicense(name string, url string) {
g.docData.Info.License.Name = name
g.docData.Info.License.Url = url
}
// AddTag 新增tag
//
// Author : go_developer@163.com<白茶清欢>