common.go 655 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Copyright 2019 github.com. All rights reserved.
  2. // Use of this source code is governed by github.com.
  3. package consts
  4. const (
  5. PageSize = 10
  6. HalfMinSecond = 30
  7. MinSecond = 60
  8. )
  9. const (
  10. TimeSecondLayOut = "2006-01-02 15:04:05"
  11. DatabaseNotFound = "database not found"
  12. )
  13. const (
  14. DustDeviceCode = 5
  15. DustDeviceName = "扬尘设备"
  16. )
  17. const (
  18. DeviceOffline = 0
  19. DeviceOnline = 1
  20. )
  21. const (
  22. DeviceOfflineCode = "O001"
  23. )
  24. // 扬尘数据类型
  25. const (
  26. DustDataTypeRealTime = iota
  27. DustDataTypeMinute
  28. DustDataTypeHour
  29. DustDataTypeDay
  30. DustDataTypeNight
  31. DustDataTypeTotalDay
  32. DustDataTypeMonth
  33. DustDataTypeYear
  34. DustDataType20Minute
  35. )