Files
ezbookkeeping/pkg/duplicatechecker/duplicate_checker.go
T
2024-08-12 00:49:07 +08:00

12 lines
495 B
Go

package duplicatechecker
import "time"
// DuplicateChecker is common duplicate checker interface
type DuplicateChecker interface {
GetSubmissionRemark(checkerType DuplicateCheckerType, uid int64, identification string) (bool, string)
SetSubmissionRemark(checkerType DuplicateCheckerType, uid int64, identification string, remark string)
GetOrSetCronJobRunningInfo(jobName string, runningInfo string, runningInterval time.Duration) (bool, string)
RemoveCronJobRunningInfo(jobName string)
}