fix: (rbac) permission Privilege
This commit is contained in:
parent
2e939cee70
commit
9a6c9489f9
|
@ -42,7 +42,7 @@ type ConsolePermisson struct {
|
|||
type Menu struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Permission []string `json:"permission,omitempty"`
|
||||
Privilege []string `json:"privilege,omitempty"`
|
||||
Children []Menu `json:"children,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -70,18 +70,18 @@ func (r ConsoleRole) ListPermission() interface{} {
|
|||
{
|
||||
Id: "cluster_overview",
|
||||
Name: "平台概览",
|
||||
Permission: []string{"none", "write", "read"},
|
||||
Privilege: []string{"none", "write", "read"},
|
||||
},
|
||||
{
|
||||
|
||||
Id: "cluster_elasticsearch",
|
||||
Name: "集群监控",
|
||||
Permission: []string{"none", "write", "read"},
|
||||
Privilege: []string{"none", "write", "read"},
|
||||
}, {
|
||||
|
||||
Id: "cluster_activities",
|
||||
Name: "集群动态",
|
||||
Permission: []string{"none", "write", "read"},
|
||||
Privilege: []string{"none", "write", "read"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -13,7 +13,7 @@ type RolePermission struct {
|
|||
type Menu struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Switch string `json:"switch"`
|
||||
Privilege string `json:"privilege"`
|
||||
}
|
||||
type UpdateConsoleRole struct {
|
||||
Description string `json:"description" `
|
||||
|
|
|
@ -20,7 +20,7 @@ type ConsolePermission struct {
|
|||
type Menu struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Permission string `json:"permission"`
|
||||
Privilege string `json:"privilege"`
|
||||
}
|
||||
type ElasticsearchPermission struct {
|
||||
Cluster []string `json:"cluster" elastic_mapping:"cluster:{type:object}"`
|
||||
|
|
Loading…
Reference in New Issue