fullStackDude's recent timeline updates
fullStackDude

fullStackDude

V2EX member #181979, joined on 2016-07-15 11:38:12 +08:00
fullStackDude's recent replies
Nov 15, 2016
Replied to a topic by 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?
Sep 7, 2016
Replied to a topic by fullStackDude 求职 国内做 micro service 的公司多嘛?
@xue777hua 加拿大,思考路径是没在国内工作过,想回国感受下
Sep 7, 2016
Replied to a topic by fullStackDude 求职 国内做 micro service 的公司多嘛?
@Nexvar 好的!加个微信嘛
Sep 7, 2016
Replied to a topic by fullStackDude Docker kubernete 的微信技术讨论群
@fatpa 留个微信?
Aug 31, 2016
Replied to a topic by fullStackDude 求职 国内做 micro service 的公司多嘛?
@convertlabJob 好 cool 啊!方便留个联系方式,请教下嘛?
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1044 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 23:30 · PVG 07:30 · LAX 16:30 · JFK 19:30
♥ Do have faith in what you're doing.