nikkiing 2 years ago
parent 26834e8d2b
commit 4bd2709c04
  1. 4
      pkg/tree.go

@ -1,8 +1,8 @@
package pkg package pkg
type Node[T any] struct { type Node[T any] struct {
Data T Data T `json:"data"`
Children []Node[T] Children []Node[T] `json:"children"`
} }
// 适用 A00001B00001 层级结构 // 适用 A00001B00001 层级结构

Loading…
Cancel
Save