123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- 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 //老版超级订阅 超前项目权限
- DetailMosaicTxt string
- NeedMosaic struct {
- Projectname bool
- Projectcode bool
- Budget bool
- Bidamount bool
- Buyer bool
- Buyerperson bool
- Buyertel bool
- Buyeraddr bool
- Agency bool
- Agencyperson bool
- Agencytel bool
- Agencyaddr bool
- Winner bool
- S_winner bool
- Winnerperson bool
- Winnertel bool
- Winneraddr bool
- Docstarttime bool
- Docendtime bool
- Bidendtime bool
- Bidstarttime bool
- Bidopentime bool
- Bidopenaddress bool
- Contractcode bool
- Signaturedate bool
- Purchasinglist bool
- Item bool
- Purchasing bool
- Itemname bool
- Brandname bool
- Specs bool
- Model bool
- Unitname bool
- Dimensions bool
- Number bool
- Unitprice bool
- Totalprice bool
- Guaranteetime bool
- Orderno bool
- Procurementlist bool
- Projectscope bool
- Reserved_amount bool
- Expurasingtime bool
- WinnerMap bool
- }
- }
- type Db struct {
- Mysql entity.Mysql `json:"mysql"`
- Redis entity.RedisStuct `json:"redis"`
- Es entity.EsStruct `json:"es"`
- Mongo entity.Mongo `json:"mongo"`
- }
|