package config import ( "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXBase/entity" "github.com/zeromicro/go-zero/zrpc" ) type Config struct { zrpc.RpcServerConf Webrpcport int64 BidSearchOldUserLimit int64 FileSignBool bool UnitAppend string //数值单位后面的加号 写死的目前 UserCenterKey string PowerCheckCenterKey string EntManageApplication string NewsLimitNum int64 // 移动端首页最新标讯数量限制 NewsTimeOut int64 //更新数据时间 NewsCache struct { // 最新标讯缓存配置 NoLogin CacheConfig // 未登录用户缓存key LoginUser CacheConfig // 登录用户有推送数据使用的key Login CacheConfig // 登录用户没有推送数据最新标讯使用的key Count CacheConfig // 查询用户有没有推送数据使用的key } NewConcurrencyNum int //最新标讯并发数 } type CacheConfig struct { Key string `json:"Key,optional"` // 缓存key Timeout int `json:"Timeout,optional"` // 缓存时间 CacheUpdateKey string `json:"CacheUpdateKey,optional"` // CacheUpdateTimeout int `json:"CacheUpdateTimeout,optional"` // } type Db struct { Mysql entity.Mysql `json:"mysql"` Redis entity.RedisStuct `json:"redis"` Es entity.EsStruct `json:"es"` Mongo entity.Mongo `json:"mongo"` }