🎨 更新项目版本

This commit is contained in:
2025-09-03 01:45:01 +08:00
parent f928348284
commit 5496bdaa94
130 changed files with 9397 additions and 1816 deletions

View File

@@ -55,19 +55,20 @@ func (s *SystemApi) SetSystemConfig(c *gin.Context) {
// ReloadSystem
// @Tags System
// @Summary 重系统
// @Summary 重系统
// @Security ApiKeyAuth
// @Produce application/json
// @Success 200 {object} response.Response{msg=string} "重系统"
// @Success 200 {object} response.Response{msg=string} "重系统"
// @Router /system/reloadSystem [post]
func (s *SystemApi) ReloadSystem(c *gin.Context) {
err := utils.Reload()
// 触发系统重载事件
err := utils.GlobalSystemEvents.TriggerReload()
if err != nil {
global.GVA_LOG.Error("重系统失败!", zap.Error(err))
response.FailWithMessage("重系统失败", c)
global.GVA_LOG.Error("重系统失败!", zap.Error(err))
response.FailWithMessage("重系统失败:"+err.Error(), c)
return
}
response.OkWithMessage("重系统成功", c)
response.OkWithMessage("重系统成功", c)
}
// GetServerInfo