1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- package config
- import (
- "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/entity"
- "github.com/zeromicro/go-zero/zrpc"
- )
- 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
- ForPayer int
- WebhookURL []string
- LimitItems []string
- }
- SearchTypeSwitch bool //标题和正文 同时查询,关键词>1;是否优化查询只查正文(正文包含标题)
- FileSignBool bool //IC.C.FileSignBool列表是否显示附件标识开关
- PaySearchLimit struct {
- Switch bool
- Year int
- Month int
- WordSize int
- PageNum int64
- PageSize int64
- PrecisionNum 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
- }
- Stages []string
- SearchWinner struct {
- Switch bool
- RegWinner string
- }
- PurchaseCode string
- PurchaseDiffSwitch bool //付费和免费查询区分开关
- SearchLimit int64 //搜索数大于条数查询标的物数
- SubjectLimit int64 //标的物大于条数展示广告推荐
- }
- 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"`
- EsFree entity.EsStruct `json:"esFree"`
- }
|