package entity import ( "github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/zrpc" ) type RpcConfig struct { zrpc.RpcServerConf FileSystemConf zrpc.RpcClientConf CalleeId string // 服务名字 ResourceEtcdConf zrpc.RpcClientConf //资源中台 PowersEtcdConf zrpc.RpcClientConf //权益中台 Node int // 节点 Mysql mysqlDb BaseMysql mysqlDb Logx logx.LogConf IsRun bool //定时任务是否开启 CheckEntIsExpire string // DoMain string RedisAddrees []string RedisOutTime int InternalTime int Mongo struct { Main *MongoStruct } BigMemberOff bool CommonlySize int64 //常用功能设置数量 CommonlyIds string //初始化常用功能内容 UserRolePower []string //用户角色权限集合 MedicalFieldTimespan int64 //医疗领域化 超级订阅 大会员到期时间> 90天 DefaultPopup map[string]Additional //菜单默认弹窗 WorkTableOut string //外网菜单表名 WorkTableInside string //内网菜单表名 RpcPort string // MenuCacheKey string //多套环境 配置不同key,同一个用户对应不用菜单缓存 } // type MongoStruct struct { Address string `json:"address"` Size int `json:"size"` DbName string `json:"dbName"` UserName string `json:"userName,optional"` Password string `json:"password,optional"` Collection string `json:"collection,optional"` CollectionBack string `json:"collectionBack,optional"` MaxOpenConns int `json:"maxOpenConns,optional"` MaxIdleConns int `json:"maxIdleConns,optional"` } type MongoDb struct { DbName string `json:"dbName"` Size int `json:"size"` Address string `json:"address"` } type mysqlDb struct { DbName string `json:"dbName"` Address string `json:"address"` UserName string `json:"userName"` PassWord string `json:"passWord"` MaxOpenConns int `json:"maxOpenConns"` MaxIdleConns int `json:"maxIdleConns"` } var ( ConfigJson RpcConfig )