complete make role tree

This commit is contained in:
yanghao05
2023-02-05 14:23:57 +08:00
parent ee631b9714
commit afeffe2ed6
7 changed files with 68 additions and 2 deletions

View File

@@ -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"`
}