config.go 337 B

123456789101112131415161718
  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. MysqlMain entity.MysqlMainStruct
  10. TestConf zrpc.RpcClientConf
  11. SurvivalTime int
  12. }
  13. type Db struct {
  14. Redis entity.RedisStuct `json:"redis"`
  15. }