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

用户角色和权限要如何实现? #232

Open
liushuainice opened this issue Oct 27, 2022 · 0 comments
Open

用户角色和权限要如何实现? #232

liushuainice opened this issue Oct 27, 2022 · 0 comments

Comments

@liushuainice
Copy link

目标:通过登录的角色不同的用户,进入首页的目录也不同,可操作的权限也不同

在yao项目初始化后的xiang_user表里,账号有角色类型 (admin 管理员, staff 员工, user 用户, robot 机器人)
但是他们要如何使用?

在登录页有xiang/login/admin 和xiang/login/user 两种接口,在app.json里可以分别设置他俩的登录后首页地址,但是左侧的菜单目录还是一样的,设置的菜单编辑里也没有权限的操作

yao原生是否支持用户角色和权限分配能力?支持的话该如何实现?

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