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

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

Loading…
Cancel
Save