chore: update startup tasks

This commit is contained in:
engigu
2025-12-09 21:44:14 +08:00
parent 0a70c15e5e
commit 2125ddc853
18 changed files with 655 additions and 257 deletions
+16
View File
@@ -3,6 +3,7 @@ package constant
import "github.com/robfig/cron/v3"
const CleanLogsTaskId = "T-IM1GBswSRY"
const CleanHostedMsgTaskId = "T-HM2KCxwTZQ"
const SiteSettingSectionName = "site_config"
//const SiteSettingTitleKeyName = "title"
@@ -22,11 +23,26 @@ var SiteSiteDefaultValueMap = map[string]string{
const LogsCleanSectionName = "log_config"
const LogsCleanCronKeyName = "cron"
const LogsCleanKeepKeyName = "keep_num"
const LogsCleanEnabledKeyName = "enabled"
// 日志清理默认值
var LogsCleanDefaultValueMap = map[string]string{
"cron": "1 0 * * *",
"keep_num": "1000",
"enabled": "true",
}
// 托管消息清理自定义
const HostedMsgCleanSectionName = "hosted_msg_config"
const HostedMsgCleanCronKeyName = "cron"
const HostedMsgCleanKeepKeyName = "keep_num"
const HostedMsgCleanEnabledKeyName = "enabled"
// 托管消息清理默认值
var HostedMsgCleanDefaultValueMap = map[string]string{
"cron": "30 0 * * *",
"keep_num": "50000",
"enabled": "false",
}
const AboutSectionName = "about"