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

@@ -9,7 +9,7 @@ import cn.hutool.core.util.ObjectUtil;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.dromara.common.core.constant.TenantConstants;
import org.dromara.common.core.constant.UserConstants;
import org.dromara.common.core.constant.SystemConstants;
import org.dromara.common.core.enums.UserType;
import org.dromara.system.api.model.LoginUser;
@@ -153,7 +153,7 @@ public class LoginHelper {
* @return 结果
*/
public static boolean isSuperAdmin(Long userId) {
return UserConstants.SUPER_ADMIN_ID.equals(userId);
return SystemConstants.SUPER_ADMIN_ID.equals(userId);
}
/**