common.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. const (
  12. ACTIONINSERT = "insert"
  13. ACTIONUPDATE = "update"
  14. ACTIONDELETE = "delete"
  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 = "DWS001"
  27. SOURCEADS1 = "ADS001"
  28. SOURCEADS2 = "ADS002"
  29. SOURCEADS3 = "ADS003"
  30. SOURCEADS4 = "ADS004"
  31. SOURCEADS5 = "ADS005"
  32. SOURCEADS6 = "ADS006"
  33. SOURCEADS7 = "ADS007"
  34. SOURCEADS8 = "ADS008"
  35. SOURCEADS9 = "ADS009"
  36. SOURCEADS10 = "ADS010"
  37. SOURCEADS11 = "ADS011"
  38. SOURCEADS14 = "ADS014"
  39. SOURCEADS15 = "ADS015"
  40. SOURCEADS16 = "ADS016"
  41. SOURCEADS17 = "ADS017"
  42. SOURCEADS18 = "ADS018"
  43. SOURCEADS19 = "ADS019"
  44. SOURCEADS20 = "ADS020"
  45. SOURCEADS21 = "ADS021"
  46. SOURCEADS23 = "ADS023"
  47. )