complete make role tree
This commit is contained in:
@@ -11,3 +11,12 @@ type RoleRequestForm struct {
|
||||
ParentID uint `json:"parent_id,omitempty"`
|
||||
DefaultRouter string `json:"default_router,omitempty"`
|
||||
}
|
||||
|
||||
type RoleTree struct {
|
||||
ID uint64 `json:"id,omitempty"`
|
||||
UUID string `json:"uuid,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
ParentID uint64 `json:"parent_id,omitempty"`
|
||||
DefaultRouter string `json:"default_router,omitempty"`
|
||||
Children []*RoleTree `json:"children,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user