config_business.go 657 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package model
  2. import (
  3. "go-common/library/database/sql"
  4. )
  5. // SQLBusiness single table offset
  6. type SQLBusiness struct {
  7. Business string
  8. AppIds string
  9. AssetDB string
  10. AssetES string
  11. AssetDtb string
  12. }
  13. // Bsn single table offset
  14. type Bsn struct {
  15. Business string
  16. AppInfo []BsnAppInfo
  17. AssetDB map[string]*sql.Config
  18. AssetES []string
  19. //AssetDtb []AssetDtb
  20. }
  21. // BsnAppInfo .
  22. type BsnAppInfo struct {
  23. AppID string `json:"appid"`
  24. IncrWay string `json:"incr_way"`
  25. IncrOpen bool `json:"incr_open"`
  26. RecoverLock bool
  27. }
  28. // AssetDtb .
  29. // type AssetDtb struct {
  30. // dtb map[string]*databus.Config
  31. // size int
  32. // sleep int
  33. // }