fullStackDude 最近的时间轴更新
fullStackDude

fullStackDude

V2EX 第 181979 号会员,加入于 2016-07-15 11:38:12 +08:00
fullStackDude 最近回复了
2016-11-15 11:17:27 +08:00
回复了 blakefan 创建的主题 程序员 请教一个权限系统设计的问题?
Table:
-organizations
-permissions
-roles
-users

然后你把直营店/加盟店/供应商分别作为 organization 的不同 type
然后 under each organization, 设立不同的 role ,比如说 admin/manager/user/customer/...
然后 map each role with different permissions ,可以用 wildercard 作为 permission check ,比如 VIEW${服务的名字}$ALL, VIEW${服务的名字}$SELF
然后给每个 actual 的 user assign role 就好了,我觉得这样比较 scalable....

关系的话
organizations >--organizations_roles--< roles
roles >--roles_users---< users
permission >---roles_permissions--< roles

How so?
2016-09-07 04:40:24 +08:00
回复了 fullStackDude 创建的主题 求职 国内做 micro service 的公司多嘛?
@xue777hua 加拿大,思考路径是没在国内工作过,想回国感受下
2016-09-07 04:39:13 +08:00
回复了 fullStackDude 创建的主题 求职 国内做 micro service 的公司多嘛?
@Nexvar 好的!加个微信嘛
2016-09-07 04:36:37 +08:00
回复了 fullStackDude 创建的主题 Docker kubernete 的微信技术讨论群
@fatpa 留个微信?
2016-08-31 11:46:21 +08:00
回复了 fullStackDude 创建的主题 求职 国内做 micro service 的公司多嘛?
@convertlabJob 好 cool 啊!方便留个联系方式,请教下嘛?
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1999 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 16:18 · PVG 00:18 · LAX 09:18 · JFK 12:18
Developed with CodeLauncher
♥ Do have faith in what you're doing.