package config import ( "github.com/zeromicro/go-zero/zrpc" "jyBXCore/entity" ) type Config struct { zrpc.RpcServerConf WebRpcPort int64 BidSearchOldUserLimit int64 //老用户 使用付费功能 LabelUrl struct { Area string SType string Industry string } DefaultSearchCacheTime int //清除搜索列表内存缓存 间隔时间 LimitSearchText struct { Flag bool Count int NoLogin int TimeOut int Percentage int UserIds []string Msg string LimitKey string } SearchTypeSwitch bool //标题和正文 同时查询,关键词>1;是否优化查询只查正文(正文包含标题) FileSignBool bool //IC.C.FileSignBool列表是否显示附件标识开关 PaySearchLimit struct { Switch bool Year int Month int WordSize int PageNum int64 PageSize int64 } //优化付费用户搜索速度 KeywordsLimit int //关键词长度限制 DefaultBidInfo struct { PageNum int Count int PayCount int } //招标信息初始化 DefaultTopTypes []string //信息类型初始值 JYKeyMark string //关键词分组标识 ContextOldVipLimit int64 //老版超级订阅 超前项目权限 Middleground struct { //中台 Etcd struct { Hosts []string } PowerCheckCenterKey string UserCenterKey string ResourceCenterKey string } ResourceCode string SearchConcurrency int64 NoLoginSearch struct { Switch bool ExecutionNum int Wait int } } type Db struct { Mysql entity.Mysql `json:"mysql"` Redis entity.RedisStuct `json:"redis"` Es entity.EsStruct `json:"es"` Mongo entity.Mongo `json:"mongo"` EsNoLogin entity.EsStruct `json:"esNoLogin"` }