update 重构 将UserConstants改为SystemConstants 统一常量使用 降低使用难度避免误解

This commit is contained in:
疯狂的狮子Li
2024-11-11 11:02:23 +08:00
parent 1eaf28e985
commit 0c824088f3
30 changed files with 145 additions and 282 deletions

View File

@@ -3,7 +3,7 @@ package org.dromara.system.api.domain.bo;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.dromara.common.core.constant.UserConstants;
import org.dromara.common.core.constant.SystemConstants;
import org.dromara.common.core.xss.Xss;
import jakarta.validation.constraints.Email;
@@ -118,7 +118,7 @@ public class RemoteUserBo implements Serializable {
}
public boolean isSuperAdmin() {
return UserConstants.SUPER_ADMIN_ID.equals(this.userId);
return SystemConstants.SUPER_ADMIN_ID.equals(this.userId);
}
}