common.go 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. )
  7. const (
  8. TimeSecondLayOut = "2006-01-02 15:04:05"
  9. )
  10. const (
  11. DeviceStatusAddAuditting = iota // 待审核
  12. DeviceStatusAddAuditted//添加设备审核通过
  13. DeviceStatusAddAudittedFail//添加设备审核未通过
  14. )
  15. const (
  16. DeviceStatusDelAuditting = iota // 拆机待审核
  17. DeviceStatusDelAuditted//拆机审核通过
  18. DeviceStatusDelAudittedFail//拆机审核未通过
  19. )
  20. const (
  21. DeviceTypeStatusAddTesting = iota //添加设备类型待对接测试
  22. DeviceTypeStatusAddTestted //对接测试通过
  23. DeviceTypeStatusAddTesttedFail //对接测试未通过
  24. )
  25. const (
  26. DeviceTypeStatusAddAuditting = iota // 待住建部审批
  27. DeviceTypeStatusAddAuditted //住建部审核通过
  28. DeviceTypeStatusAddAudittedFail //住建部审核未通过
  29. )
  30. const (
  31. ProviderStatusAddAuditting = iota
  32. ProviderStatusAddAuditted
  33. ProviderStatusAddAudittedFail
  34. )
  35. const (
  36. _ = iota
  37. AttendanceKindIn
  38. AttendanceKindOut
  39. AttendanceKindInOut
  40. AttendanceKindCollect
  41. )
  42. const (
  43. _ = iota
  44. AttendanceSubKindIris
  45. AttendanceSubKindRedFace
  46. AttendanceSubKindLightFace
  47. AttendanceSubKindLightRedFace
  48. AttendanceSubKindLightFaceIris
  49. )
  50. var AttendanceKind = map[int]string{
  51. AttendanceKindIn:"进场设备",
  52. AttendanceKindOut:"出场设备",
  53. AttendanceKindInOut:"进出场设备",
  54. AttendanceKindCollect:"采集设备",
  55. }
  56. var AttendanceSubKind = map[int]string{
  57. AttendanceSubKindIris:"虹膜设备",
  58. AttendanceSubKindRedFace:"红外人脸设备",
  59. AttendanceSubKindLightFace:"可见光人脸设备",
  60. AttendanceSubKindLightRedFace:"可见光+红外人脸设备",
  61. AttendanceSubKindLightFaceIris:"可见光+虹膜设备",
  62. }