common.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // Copyright 2019 getensh.cc. All rights reserved.
  2. // Use of this source code is governed by getensh.cc.
  3. package consts
  4. // 定义数据来源大类
  5. const (
  6. ODSPROVIDERLOG = "provider-log" // 数据源日志
  7. ODSGDLOG = "gd-log" // gd日志
  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. SOURCEADS1 = "ADS001"
  43. SOURCEADS2 = "ADS002"
  44. )
  45. const (
  46. ACTIONINSERT = "insert"
  47. ACTIONUPDATE = "update"
  48. ACTIONDELETE = "delete"
  49. )
  50. const (
  51. ONLINE = "online"
  52. OFFLINE = "offline"
  53. )
  54. const (
  55. ADSMSGTYPE = 1
  56. DWSMSGTYPE = 2
  57. )
  58. const (
  59. SourceLevelOds = 1
  60. SourceLevelDws = 2
  61. )