2

系统权限数据库设计里面权限可不可以放到单独的一个类或文件中

 3 years ago
source link: https://www.v2ex.com/t/800548
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  数据库

系统权限数据库设计里面权限可不可以放到单独的一个类或文件中

  skai0dev · 14 小时 54 分钟前 · 492 次点击

一般系统权限对应一个处理请求的方法,所以系统权限的数量相对固定,对于一个只有几十或者一两百个权限的系统,可不可以把权限表放到一个枚举类或者一个文件中来维护

3 条回复    2021-09-08 11:58:11 +08:00

xuanbg

xuanbg   14 小时 52 分钟前

RBAC 又不复杂。。。劝你不要这么搞。

777777

777777   12 小时 55 分钟前

casbin

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK