config.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. }
  27. type Push struct {
  28. TimeTaskSwitch bool
  29. StationMailHref string
  30. StationMailAction string
  31. TestId string
  32. SaleClue struct {
  33. Create Create
  34. Due Due
  35. }
  36. SaleChance struct {
  37. Create Create
  38. Due Due
  39. }
  40. Custom struct {
  41. Create Create
  42. Due Due
  43. }
  44. PushTime string
  45. DueDay int
  46. }
  47. type Create struct {
  48. Title string
  49. MySelfContent string
  50. TransferContent string
  51. MyselfPcHref string
  52. TransferPcHref string
  53. MobileHref string
  54. }
  55. type Due struct {
  56. Title string
  57. Content string
  58. PcHref string
  59. MobileHref string
  60. }