package dto type TreeDto struct { ID int `json:"id"` Title string `json:"title"` Children []*TreeDto `json:"children"` } type DTreeDto struct { ID string `json:"id"` Title string `json:"title"` Last bool `json:"last"` ParentId string `json:"parentId"` Spread bool `json:"spread"` Children []*DTreeDto `json:"children"` }