修复对象嵌套的BUG

This commit is contained in:
2024-04-23 14:43:23 +08:00
parent ee48b651a8
commit 4ef4e5ae3b
3 changed files with 42 additions and 5 deletions

View File

@ -53,6 +53,14 @@ func TestGenerate(t *testing.T) {
Required: true,
EnumList: []interface{}{"zhang", "de", "man"},
},
&define.SwaggerParameterInput{
Type: consts.DataTypeString,
Description: "性别",
Name: "person.sex",
In: "body",
Required: true,
EnumList: []interface{}{"man", "woman", "other"},
},
&define.SwaggerParameterInput{
Type: consts.DataTypeInt,
Description: "年龄",