go-common/app/job/main/spy/model/config.go

34 lines
593 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package model
import "time"
// config properties.
const (
LimitBlockCount = "limitBlockCount"
LessBlockScore = "lessBlockScore"
AutoBlock = "autoBlock"
AutoBlockOpen = 1
)
const (
//PunishmentTypeBlock 封禁
PunishmentTypeBlock = 1
//BlockReasonSize block reason size
BlockReasonSize = 3
//BlockLockKey cycle block
BlockLockKey = "cycleblock"
//ReportJobKey report job
ReportJobKey = "reportjob"
//DefLockTime def.
DefLockTime int64 = 60
)
// Config def.
type Config struct {
ID int64
Property string
Name string
Val string
Ctime time.Time
}