common.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. )
  32. const DAYSECOND = 24 * 60 * 60
  33. const MINUTESECOND = 60
  34. const (
  35. CdbdTwoElementVerifyPre = "cdbd:two-element:"
  36. DybdTwoElementVerifyPre = "dybd:two-element:"
  37. DyTwoElementVerifyPre = "dy:two-element:"
  38. ZRTwoElementVerifyPre = "zr:two-element:"
  39. ZRNationalTwoElementVerifyPre = "zr:two-element-national:"
  40. ZRNationalVehicleInfoPre = "zr:vehicle-info:"
  41. ZRNationalVehicleVinPre = "zr:vehicle-vin:"
  42. ZRNationalVehicleFivePre = "zr:vehicle-five:"
  43. )