common.go 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. ODSPROVIDERLOG = "provider-log" // 数据源日志
  7. ODSDIPLOG = "dip-log" // dip日志
  8. ODSMANUALAMENDMENT = "manual" // 人工修正
  9. ODSOFFLINEIMPORT = "offline-import" // 离线导入
  10. )
  11. // 定义过期或不过期数据
  12. const (
  13. NORMALDATA = "0"
  14. EXPIREDATA = "1"
  15. )
  16. // 数据源编码
  17. const (
  18. /*CXYVIOLATION = "117-001" //车行易违章
  19. ZQYPLATEVEHICLE = "119-001"
  20. ZQYVINVEHICLE = "119-002"
  21. SPYDEFINEVIN = "128-001" // SPY VIN码获取车型信息
  22. SPYVINNEW = "128-011"
  23. SPYTWODATE = "128-004"
  24. SPYINSUREDATE = "128-009"
  25. ZQYINSUREDATE = "119-005"
  26. SPYTRANSFERRECORD = "128-010"
  27. DRVVEHICLEOWNERVERIFY = "138-002"
  28. SPYTWODATE2 = "128-006"
  29. SPYTRANSFERBYVIN = "128-007"
  30. SPYTWOELEMENTVERIFY = "128-008"
  31. ZCRKTWOELEMENTVERIFY = "141-001"
  32. ZCRKTWOELEMENTVERIFY2 = "141-002"
  33. DRVVEHICLEOWNERVERIFYBAK = "138-004"
  34. ZJCVEHICLEOWNER = "142-001"*/
  35. DYIDCERTVERIFY = "102-001"
  36. CDBDTWOELEMENTVERIFY = "101-001"
  37. ZRVEHICLEINFO = "103-001"
  38. ZRTWOELEMENTVERIFYNATIONAL = "103-002"
  39. ZRVEHICLEVIN = "103-003"
  40. ZRVEHICLEFIVE = "103-004"
  41. ZRVININFO = "103-005"
  42. DYXL = "104-002"
  43. DYXW = "104-001"
  44. DYXLALL = "104-003"
  45. //ZCRKENGINENO = "141-003"
  46. //ZCRKBYVIN = "141-004"
  47. )
  48. // 定义数据来源编号
  49. const (
  50. SOURCEODS1 = "ODS001" // 车行易违章
  51. SOURCEODS2 = "ODS002"
  52. SOURCEODS3 = "ODS003"
  53. SOURCEODS4 = "ODS004"
  54. SOURCEODS5 = "ODS005"
  55. SOURCEODS6 = "ODS006"
  56. SOURCEODS7 = "ODS007"
  57. SOURCEODS8 = "ODS008"
  58. SOURCEODS9 = "ODS009"
  59. SOURCEODS10 = "ODS010"
  60. SOURCEODS11 = "ODS011"
  61. SOURCEODS12 = "ODS012"
  62. SOURCEODS13 = "ODS013"
  63. SOURCEODS15 = "ODS015"
  64. SOURCEODS16 = "ODS016"
  65. SOURCEODS17 = "ODS017"
  66. SOURCEODS18 = "ODS018"
  67. SOURCEODS19 = "ODS019"
  68. SOURCEDWS1 = "DWS001"
  69. SOURCEDWS2 = "DWS001"
  70. SOURCEADS1 = "ADS001"
  71. SOURCEADS2 = "ADS002"
  72. )
  73. const (
  74. ONLINE = "online"
  75. OFFLINE = "offline"
  76. )
  77. const (
  78. DEFAULTPAGESIZE = 1000
  79. )
  80. const (
  81. FromDb = 1
  82. FromExcel = 2
  83. )