config.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. Redis string `json:"redis"`
  28. }
  29. type CHouseConfig struct {
  30. Addr string
  31. UserName string
  32. Password string
  33. DbName string
  34. MaxIdleConns int
  35. MaxOpenConns int
  36. }
  37. type Push struct {
  38. TimeTaskSwitch bool
  39. StationMailHref string
  40. StationMailAction string
  41. TestId string
  42. SaleClue struct {
  43. Create Create
  44. Due Due
  45. }
  46. SaleChance struct {
  47. Create Create
  48. Due Due
  49. }
  50. Custom struct {
  51. Create Create
  52. Due Due
  53. }
  54. PushTime string
  55. DueDay int
  56. }
  57. type Create struct {
  58. Title string
  59. MySelfContent string
  60. TransferContent string
  61. MyselfPcHref string
  62. TransferPcHref string
  63. MobileHref string
  64. }
  65. type Due struct {
  66. Title string
  67. Content string
  68. PcHref string
  69. MobileHref string
  70. }