支持生成描述,默认值,参数名称

This commit is contained in:
2025-02-11 22:28:45 +08:00
parent f9a1222712
commit 613e004bf2
2 changed files with 21 additions and 15 deletions

View File

@ -24,7 +24,7 @@ import (
// Date : 17:55 2024/7/19
func Test_parser_Openapi3(t *testing.T) {
type A struct {
Name string `json:"name"`
Name string `json:"name" d:"zhang" desc:"用户姓名"`
}
type B struct {
List []A `json:"list"`