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

修改 YApi 的用户角色(添加管理员) - 磊叔的技术博客 #24

Open
glmapper opened this issue May 25, 2022 · 0 comments
Open

Comments

@glmapper
Copy link
Owner

http://localhost:4000/2022/05/25/api/api-yapi-change-user-role-by-mongo/

YApi 后端使用的是 MongoDB,先进入命令行管理工具: mongo 然后进入 yapi 数据库: use yapi 随后查询下指定用户的用户 id: db.getCollection(“user”).find({“username”:”glmapper”}) 也可以用邮箱来查: db.getCollection(“user”).find({“email”:”g&#x

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

No branches or pull requests

1 participant