config.go 803 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. //BlockReasonSize block reason size
  12. BlockReasonSize = 4
  13. //BlockLockKey cycle block
  14. BlockLockKey = "cycleblock"
  15. //VipEnableStatus enable status
  16. VipEnableStatus int32 = 1
  17. //VipNonType non vip
  18. VipNonType int32 = 0
  19. // ReliveCheckTimes relive check times
  20. ReliveCheckTimes = 1
  21. // DoubleCheckRemake double check remake
  22. DoubleCheckRemake = "导入二次验证,恢复行为得分"
  23. // RetryTimes retry times
  24. RetryTimes = 3
  25. // SpyInitScore spy init score
  26. SpyInitScore = 100
  27. )
  28. // Config def.
  29. type Config struct {
  30. ID int64
  31. Property string
  32. Name string
  33. Val string
  34. Ctime time.Time
  35. }