abnormal message notification

This commit is contained in:
landaiqing
2024-09-05 23:34:46 +08:00
parent b3ae27dd20
commit c61c33880c
7 changed files with 44 additions and 200 deletions

View File

@@ -30,7 +30,7 @@ func InitRouter() *gin.Engine {
MaxAge: 12 * time.Hour,
}))
// 国际化设置
router.Use(middleware.I18n())
router.Use(middleware.I18n(), middleware.ExceptionNotification())
publicGroup := router.Group("api") // 不需要鉴权的路由组
{