Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(back): 权限系统设计 #15

Open
Drincann opened this issue Jan 27, 2022 · 0 comments
Open

feature(back): 权限系统设计 #15

Drincann opened this issue Jan 27, 2022 · 0 comments

Comments

@Drincann
Copy link
Member

抽象 用户 - 角色 - 权限 的关系。

一、在 User 中添加 role 字段外联到 Role 实例,每个 Role 实例拥有多种权限,我们为每个接口设定一权限,在接口入口的中间件处根据调用者(User)判断是否拥有该权限。

二、在 User 中添加 role 字段外联到 Role 实例,在接口入口的中间件处设定该接口允许何种 Role 访问。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant