提交一版返回值处理, 待调试

This commit is contained in:
2024-04-22 18:55:03 +08:00
parent 9569f7dfd0
commit a55cb66fd0
3 changed files with 103 additions and 13 deletions

View File

@ -54,7 +54,20 @@ func TestGenerate(t *testing.T) {
EnumList: []interface{}{"zhang", "de", "man"},
},
},
ResponseList: nil,
ResponseList: []*define.SwaggerResponseInput{
&define.SwaggerResponseInput{
Code: "200",
Description: "成功",
List: []*define.SwaggerResponseItemInput{
&define.SwaggerResponseItemInput{
Type: consts.DataTypeString,
Description: "姓名",
Field: "nick_name",
IsRequired: false,
},
},
},
},
},
},
})