优化openapi文档数据结构定义

This commit is contained in:
2025-02-10 11:22:40 +08:00
parent 99a84d8083
commit f885f61f62
2 changed files with 38 additions and 38 deletions

View File

@ -32,7 +32,7 @@ func Test_parser_Openapi3(t *testing.T) {
var bArr *B
g := NewOpenapiDoc(nil, nil)
g.AddApiFromInAndOut(&define.UriBaseConfig{
Uri: "/a/b/c/d",
Uri: "/ent/user/detail",
Method: http.MethodPost,
ContentType: []string{"application/x-www-form-urlencoded"},
OutputContentType: []string{"application/yml", "application/json", "application/xml"},