service/library/contentaudit/imageaudit/taskscheduler.go

15 lines
232 B
Go
Raw Normal View History

2023-12-21 22:17:40 +08:00
package imageaudit
import (
"fmt"
"time"
)
// 生成批次号
func genereteBatchId() string {
now := time.Now()
y, m, d := now.Date()
h, mi, s := now.Clock()
2024-01-20 18:48:38 +08:00
return fmt.Sprintf("%d%02d%02d%02d%02d%02d", y, m, d, h, mi, s)
2023-12-21 22:17:40 +08:00
}