common.go 757 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. TimeSecondLayOut = "2006-01-02 15:04:05"
  7. DayLayOut = "2006-01-02"
  8. HalfMinSecond = 30
  9. MinSecond = 60
  10. )
  11. // 人员状态
  12. const (
  13. StaffNew = 0
  14. StaffStayDownload = 1
  15. StaffAlreadyDownload = 2
  16. StaffStayDelete = 3
  17. )
  18. // 员工类型
  19. const (
  20. ManagementStaff = 1
  21. LaborStaff = 2
  22. )
  23. // 反馈类型
  24. const (
  25. DeleteSucess = 0
  26. DeleteFail = 1
  27. DownLoadSucess = 2
  28. DownLoadFail = 3
  29. )
  30. const (
  31. DeviceOffline = 0
  32. DeviceOnline = 1
  33. )
  34. const ()
  35. const (
  36. DeviceOfflineCode = "O001"
  37. AccessControlDeviceName = "门禁设备"
  38. AccessControlDeviceCode = 3
  39. )