user{
accounts : [
{
type : "administrator" //可以抽象或具体 : administrator, manager
password : "1234",
roles :[
{
type: "manager",
roleTaskss : ",manager,supervisor,"
},
{
type: "supervisor",
roleTaskss : ",supervisor,"
}
],
accountBindings : [
{
type : "email",
primaryKey : "xxx@xxx"
}
]
}
]
}
roles :[
{
type: "manager",
roleTaskss : ",manager,supervisor,"
},
{
type: "supervisor",
roleTaskss : ",supervisor,"
}
],
角色>权限 的管理(Role-Based Access Control),mamicode.com" target="_blank">概念 : 用户>角色>权限 的管理(Role-Based Access Control)