config.go 1.0 KB

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