清理掉定时任务config配置,修改为代码内书写 (#1578)

This commit is contained in:
奇淼(piexlmax
2023-11-20 23:38:15 +08:00
committed by GitHub
parent 4433b6623e
commit bd2a3ddfba
7 changed files with 82 additions and 77 deletions
-12
View File
@@ -224,18 +224,6 @@ hua-wei-obs:
excel:
dir: ./resource/excel/
# timer task db clear table
Timer:
start: true
spec: "@daily" # 定时任务详细配置参考 https://pkg.go.dev/github.com/robfig/cron/v3
detail:
- tableName: sys_operation_records
compareField: created_at
interval: 2160h
- tableName: jwt_blacklists
compareField: created_at
interval: 168h
# 跨域配置
# 需要配合 server/initialize/router.go -> `Router.Use(middleware.CorsByRules())` 使用
cors: