init: hgmj server initial commit
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package dataclean
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"91jd-server/common/timeutil"
|
||||
)
|
||||
|
||||
func RunSync() {
|
||||
today := timeutil.BeginningOfDay(time.Now())
|
||||
|
||||
// log库清理
|
||||
go clearVisitLog(today, 7)
|
||||
go clearPlayLog(today)
|
||||
go clearSearchLog(today)
|
||||
go clearLoginTime(today)
|
||||
go clearUserRegisterLog(today)
|
||||
|
||||
// stat库清理
|
||||
go clearKeywordStat(today)
|
||||
go clearNewsHot(today)
|
||||
go clearKwRankStat(today)
|
||||
go clearVideoStat(today)
|
||||
|
||||
// 主库清理
|
||||
go clearNoticeFmt(today)
|
||||
go clearUserAct(today)
|
||||
go clearGuestUser(today)
|
||||
}
|
||||
Reference in New Issue
Block a user