From 46f12dc9adbea461f4b965aaf7327734bef79025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=B1=89=E5=BC=BA?= Date: Thu, 14 Mar 2024 17:24:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E5=90=8E=E5=8F=B0=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=8E=BB=E6=8E=89=E6=9D=83=E9=99=90=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/handler/admin/dashboard_handler.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api/handler/admin/dashboard_handler.go b/api/handler/admin/dashboard_handler.go index b36195d1..8c7a1c1d 100644 --- a/api/handler/admin/dashboard_handler.go +++ b/api/handler/admin/dashboard_handler.go @@ -5,7 +5,6 @@ import ( "chatplus/core/types" "chatplus/handler" "chatplus/store/model" - "chatplus/utils" "chatplus/utils/resp" "github.com/gin-gonic/gin" "github.com/shopspring/decimal" @@ -33,11 +32,6 @@ type statsVo struct { } func (h *DashboardHandler) Stats(c *gin.Context) { - if err := utils.CheckPermission(c, h.db); err != nil { - resp.NotPermission(c) - return - } - stats := statsVo{} // new users statistic var userCount int64