common.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. SOURCENORML = 0 // 数据源或者离线处理日志
  19. SOURCEMANUALAMENDMENT = 1 // 人工修正
  20. )
  21. // 定义数据来源编号
  22. const (
  23. SOURCEODS1 = "ODS001"
  24. SOURCEODS2 = "ODS002"
  25. SOURCEDWS1 = "DWS001"
  26. SOURCEDWS2 = "DWS002"
  27. SOURCEDWS3 = "DWS003"
  28. SOURCEDWS4 = "DWS004"
  29. SOURCEDWS5 = "DWS005"
  30. SOURCEDWS6 = "DWS006"
  31. SOURCEDWS7 = "DWS007"
  32. SOURCEDWS8 = "DWS008"
  33. SOURCEDWS9 = "DWS009"
  34. SOURCEDWS10 = "DWS010"
  35. SOURCEDWS11 = "DWS011"
  36. SOURCEDWS12 = "DWS012"
  37. SOURCEDWS13 = "DWS013"
  38. SOURCEDWS14 = "DWS014"
  39. SOURCEDWS15 = "DWS015"
  40. SOURCEDWS16 = "DWS016"
  41. SOURCEDWS17 = "DWS017"
  42. SOURCEDWS18 = "DWS018"
  43. SOURCEDWS19 = "DWS019"
  44. SOURCEDWS24 = "DWS024"
  45. SOURCEDWS25 = "DWS025"
  46. SOURCEDWS26 = "DWS026"
  47. SOURCEADS1 = "ADS001"
  48. SOURCEADS2 = "ADS002"
  49. )
  50. const (
  51. ACTIONINSERT = "insert"
  52. ACTIONUPDATE = "update"
  53. ACTIONDELETE = "delete"
  54. )
  55. const (
  56. ONLINE = "online"
  57. OFFLINE = "offline"
  58. )
  59. const (
  60. ADSMSGTYPE = 1
  61. DWSMSGTYPE = 2
  62. )
  63. const (
  64. SourceLevelOds = 1
  65. SourceLevelDws = 2
  66. )