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

不能生成admin角色的用户 #673

Open
hongxiao2016 opened this issue Jan 25, 2024 · 2 comments
Open

不能生成admin角色的用户 #673

hongxiao2016 opened this issue Jan 25, 2024 · 2 comments

Comments

@hongxiao2016
Copy link

APIJSON Version/APIJSON 版本号

6.3.0

Database Type & Version/数据库类型及版本号

5.7.34

Environment/环境信息

- JDK/基础库:1.8
- OS/系统:deepin

APIAuto Screenshots/APIAuto 请求与结果完整截屏

看了代码可以重写verifyAdmin来定义admin,但是实际上并没有用

Current Behavior/问题描述

verifyAdmin(){
}
重写为空方法,理论上应该所有用户都为ADMIN,因为没有产生异常的可能性
但是当用户执行需要ADMIN用户的插入时,依然提示为LOGIN用户

Expected Behavior/期望结果

重写后用户应该为ADMIN用户

Any additional comments?/其它补充说明?

No response

@hongxiao2016
Copy link
Author

添加验证{"INSERT": {"@ROLE": "ADMIN"}}即可实现

@TommyLemon
Copy link
Collaborator

默认所有角色是预设的,没有生成的。
要用那个就用 @role 指定,具体见通用文档#功能符
https://github.com/Tencent/APIJSON/blob/master/Document.md#3.2

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

2 participants