增加角色权限不足捕获

This commit is contained in:
张松
2025-02-12 17:40:17 +08:00
parent 8b83858f59
commit cf0ebfa8f4
2 changed files with 11 additions and 1 deletions

View File

@@ -15,7 +15,8 @@ public enum CzgRespCode {
RECORD_EXISTED(602, "记录已存在"),
PARAM_ERROR(603, "参数错误"),
UNAUTHORIZED(401, "未授权"),
UN_PERMISSION(402, "无此接口权限"),;
UN_PERMISSION(402, "无此接口权限"),
UN_ROLE(403, "角色权限不足");
private final int code;
private final String msg;