service/library/contentaudit/textaudit/taskscheduler.go

15 lines
231 B
Go

package textaudit
import (
"fmt"
"time"
)
// 生成批次号
func genereteBatchId() string {
now := time.Now()
y, m, d := now.Date()
h, mi, s := now.Clock()
return fmt.Sprintf("%d%02d%02d%02d%02d%02d", y, m, d, h, mi, s)
}