添加行为记录表

This commit is contained in:
chenshaohua
2026-07-24 13:43:39 +08:00
parent 9b6b38d6b6
commit 83ac495842
7 changed files with 316 additions and 0 deletions

View File

@@ -150,4 +150,15 @@ public class SiteSecurityUtils
throw new ServiceException("获取用户ID异常", HttpStatus.UNAUTHORIZED);
}
}
/**
* 是否为管理员
*
* @param userId 用户ID
* @return 结果
*/
public static boolean isAdmin(Long userId)
{
return userId != null && 1L == userId;
}
}