config.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package config
  2. import (
  3. "bp.jydev.jianyu360.cn/CRM/application/entity"
  4. "github.com/zeromicro/go-zero/rest"
  5. "github.com/zeromicro/go-zero/zrpc"
  6. )
  7. type Config struct {
  8. rest.RestConf
  9. Gateway struct {
  10. ServerCode string
  11. Etcd []string
  12. }
  13. UserCenterRpc zrpc.RpcClientConf
  14. FileCenterRpc zrpc.RpcClientConf
  15. OssBucketName string
  16. OssUrl string
  17. BaseCenterRpc zrpc.RpcClientConf
  18. NextFollowUpTime int
  19. SocialPlatformRpc zrpc.RpcClientConf
  20. ResourceCenterKey string
  21. }
  22. type Db struct {
  23. Mysql entity.Mysql `json:"mysql"`
  24. Mongo entity.Mongo `json:"mongo"`
  25. Es entity.EsStruct `json:"es"`
  26. Clickhouse *CHouseConfig
  27. }
  28. type CHouseConfig struct {
  29. Addr string
  30. UserName string
  31. Password string
  32. DbName string
  33. MaxIdleConns int
  34. MaxOpenConns int
  35. }
  36. type Push struct {
  37. TimeTaskSwitch bool
  38. StationMailHref string
  39. StationMailAction string
  40. TestId string
  41. SaleClue struct {
  42. Create Create
  43. Due Due
  44. }
  45. SaleChance struct {
  46. Create Create
  47. Due Due
  48. }
  49. Custom struct {
  50. Create Create
  51. Due Due
  52. }
  53. PushTime string
  54. DueDay int
  55. }
  56. type Create struct {
  57. Title string
  58. MySelfContent string
  59. TransferContent string
  60. MyselfPcHref string
  61. TransferPcHref string
  62. MobileHref string
  63. }
  64. type Due struct {
  65. Title string
  66. Content string
  67. PcHref string
  68. MobileHref string
  69. }