zoukankan      html  css  js  c++  java
  • 权限管理(给予角色)

    参考 : http://www.open-open.com/lib/view/open1397989124218.html

    开始时5个表 

    1.user 

    2.role

    3.task 

    4.user_mm_role (n-n for user & role)

    5.role_mm_task (n-n for role & task)

    这样每个 user 都扮演着多个角色 , 而不同的角色可以执行多个不同的 task

    如果user很多,可以在开一个 

    6.userGroup 

    7.userGroup_mm_user 

    8.userGroup_mm_role

    就是把 user group 起来, 把角色的匹配交给 group

    再来 role 也可以分组 

    9.roleGroup 

    10.roleGroup_mm_task

    原理和userGroup相同. 

    总结就是 : user 可以执行他的或他组的所有角色或角色组所匹配的任务.

    前端 MVVM angularjs 

    http://www.open-open.com/lib/view/open1408084201582.html

  • 相关阅读:
    North North West
    HDU-5387 Clock
    HDU-1036 Average is not Fast Enough!
    Growling Gears
    HDU-5375 Gray code
    HDU-5373 The shortest problem
    hdu-5364 Distribution money
    UVA
    HDU-5363 Key Set
    HDU-5326 Work
  • 原文地址:https://www.cnblogs.com/keatkeat/p/4307771.html
Copyright © 2011-2022 走看看