style(logs): translate cleanup categories to Chinese and optimize log detail mobile layout

This commit is contained in:
duorameng
2026-05-19 09:39:19 +08:00
parent a31c4b9f03
commit cded935c4d
3 changed files with 26 additions and 3 deletions
+14 -1
View File
@@ -201,7 +201,20 @@ func (s *AppLogService) CleanUp() {
catTotal := daysDeleted + countDeleted
if catTotal > 0 {
totalDeleted += catTotal
summaryBuilder.WriteString(fmt.Sprintf("分类 [%s]: 过期清理 %d 条,溢出限制清理 %d 条;\n", cat, daysDeleted, countDeleted))
var catLabel string
switch cat {
case constant.LogCategorySystemNotice:
catLabel = "系统通知"
case constant.LogCategoryPushLog:
catLabel = "推送日志"
case constant.LogCategoryLoginLog:
catLabel = "登录日志"
case constant.LogCategorySchedulerLog:
catLabel = "调度日志"
default:
catLabel = cat
}
summaryBuilder.WriteString(fmt.Sprintf("分类 [%s]: 过期清理 %d 条,溢出限制清理 %d 条;\n", catLabel, daysDeleted, countDeleted))
}
}