12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- 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 //资源中台
- 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 //菜单默认弹窗
- }
- //
- 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
- )
|