v1
This commit is contained in:
18
internal/erpserver/model/dto/tree.go
Normal file
18
internal/erpserver/model/dto/tree.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user