config.go 506 B

1234567891011121314151617181920212223
  1. package config
  2. import (
  3. "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/entity"
  4. "github.com/zeromicro/go-zero/zrpc"
  5. )
  6. type Config struct {
  7. zrpc.RpcServerConf
  8. WebRpcPort int64
  9. TestConf zrpc.RpcClientConf
  10. SurvivalTime int
  11. DefaultMsg struct {
  12. SendFromId int64 `json:"sendFromId"`
  13. MsgContent string `json:"msgContent"`
  14. } `json:"defaultMsg"`
  15. }
  16. type Db struct {
  17. Mysql entity.Mysql `json:"mysql"`
  18. Redis entity.RedisStuct `json:"redis"`
  19. Mongo entity.Mongo `json:"mongo"`
  20. }