优化一波api-doc代码

This commit is contained in:
2024-04-25 16:34:22 +08:00
parent f04648f3e9
commit 181f963688
6 changed files with 55 additions and 66 deletions

View File

@ -19,7 +19,7 @@ import (
func TestGenerate(t *testing.T) {
res, _ := Generate(&define.SwaggerInput{
Schemes: []string{},
Swagger: define.SwaggerVersion2,
Swagger: consts.SwaggerDocVersion2,
Host: "http://www.baidu.com",
BasePath: "/",
Info: define.Info{