config.go 593 B

123456789101112131415161718192021222324252627282930313233
  1. package model
  2. import "time"
  3. // config properties.
  4. const (
  5. LimitBlockCount = "limitBlockCount"
  6. LessBlockScore = "lessBlockScore"
  7. AutoBlock = "autoBlock"
  8. AutoBlockOpen = 1
  9. )
  10. const (
  11. //PunishmentTypeBlock 封禁
  12. PunishmentTypeBlock = 1
  13. //BlockReasonSize block reason size
  14. BlockReasonSize = 3
  15. //BlockLockKey cycle block
  16. BlockLockKey = "cycleblock"
  17. //ReportJobKey report job
  18. ReportJobKey = "reportjob"
  19. //DefLockTime def.
  20. DefLockTime int64 = 60
  21. )
  22. // Config def.
  23. type Config struct {
  24. ID int64
  25. Property string
  26. Name string
  27. Val string
  28. Ctime time.Time
  29. }