地柜解析逻辑

This commit is contained in:
2025-02-08 22:04:25 +08:00
parent 81975350c1
commit 27f2ccf2aa
2 changed files with 37 additions and 8 deletions

View File

@ -30,14 +30,9 @@ func Test_parser_Openapi3(t *testing.T) {
type B struct {
List []A `json:"list"`
}
var b *B
tt := reflect.TypeOf(b)
fmt.Println(tt)
var bArr []*B
v := reflect.MakeSlice(reflect.TypeOf(bArr), 1, 1)
fmt.Println(v)
index9 := v.Index(0)
fmt.Println(index9, index9.Type())
g := Generate{}
fmt.Println(g.parseSliceItem(reflect.TypeOf(bArr)))
current, _ := user.Current()
byteData, _ := os.ReadFile(current.HomeDir + "/Downloads/test-openapi-doc.json")
var data define.OpenapiDoc