refactor: 优化通知公告部分代码

This commit is contained in:
2024-11-05 23:21:40 +08:00
parent 4c36f23398
commit e1941eca45
10 changed files with 74 additions and 46 deletions

View File

@@ -178,7 +178,7 @@ public class UserContextHolder {
*
* @return 是否为管理员
*/
public static Boolean isAdmin() {
public static boolean isAdmin() {
StpUtil.checkLogin();
return getContext().isAdmin();
}