config.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. }
  21. type Db struct {
  22. Mysql entity.Mysql `json:"mysql"`
  23. Mongo entity.Mongo `json:"mongo"`
  24. Es entity.EsStruct `json:"es"`
  25. }
  26. type Push struct {
  27. TimeTaskSwitch bool
  28. StationMailHref string
  29. StationMailAction string
  30. TestId string
  31. SaleClue struct {
  32. Create Create
  33. Due Due
  34. }
  35. SaleChance struct {
  36. Create Create
  37. Due Due
  38. }
  39. Custom struct {
  40. Create Create
  41. Due Due
  42. }
  43. PushTime string
  44. DueDay int
  45. }
  46. type Create struct {
  47. Title string
  48. MySelfContent string
  49. TransferContent string
  50. MyselfPcHref string
  51. TransferPcHref string
  52. MobileHref string
  53. }
  54. type Due struct {
  55. Title string
  56. Content string
  57. PcHref string
  58. MobileHref string
  59. }