config.go 1.1 KB

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