18 lines
		
	
	
		
			326 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			326 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 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"`
 | |
| 
 | |
| 	Children []*DTreeDto `json:"children"`
 | |
| }
 |