common.go 649 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2019 getensh.com. All rights reserved.
  2. // Use of this source code is governed by getensh.com.
  3. package consts
  4. // 车牌长度定义
  5. const (
  6. VINLEN = 17
  7. PLATELEN = 6
  8. PLATENEWLEN = 7
  9. )
  10. // 时间格式常量定义
  11. const (
  12. DataLen = len("2006-01-02")
  13. MonthLen = len("2006-01")
  14. DaySecLen = len("2006-01-02 15:04:05")
  15. DayLayout = "2006-01-02"
  16. DaySecLayout = "2006-01-02 15:04:05"
  17. DayLayout2 = "2006/1/2"
  18. DaySecond = 24 * 60 * 60
  19. SecondTime = 60
  20. )
  21. // 环定义
  22. const (
  23. RANGEZERO = 0
  24. RANGEONE = 1
  25. RANGETWO = 2
  26. RANGETHREE = 3
  27. RANGEFOURE = 4
  28. RANGEFIVE = 5
  29. RANGESIX = 6
  30. RANGESEVEN = 7
  31. )