config.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. Content string
  49. MyselfPcHref string
  50. TransferPcHref string
  51. MobileHref string
  52. }
  53. type Due struct {
  54. Title string
  55. Content string
  56. PcHref string
  57. MobileHref string
  58. }