|
@@ -1,73 +1,72 @@
|
|
|
package config
|
|
|
|
|
|
import (
|
|
|
- qutil "app.yhyue.com/moapp/jybase/common"
|
|
|
- "app.yhyue.com/moapp/jypkg/compatible"
|
|
|
- "app.yhyue.com/moapp/jypkg/middleground"
|
|
|
- "github.com/gogf/gf/v2/frame/g"
|
|
|
- "github.com/gogf/gf/v2/os/gcfg"
|
|
|
- "github.com/gogf/gf/v2/os/gctx"
|
|
|
+ qutil "app.yhyue.com/moapp/jybase/common"
|
|
|
+ "app.yhyue.com/moapp/jypkg/compatible"
|
|
|
+ "app.yhyue.com/moapp/jypkg/middleground"
|
|
|
+ "github.com/gogf/gf/v2/frame/g"
|
|
|
+ "github.com/gogf/gf/v2/os/gcfg"
|
|
|
+ "github.com/gogf/gf/v2/os/gctx"
|
|
|
)
|
|
|
|
|
|
type config struct {
|
|
|
- WebPort string
|
|
|
- Mail []struct {
|
|
|
- Addr string
|
|
|
- Port int
|
|
|
- Pwd string
|
|
|
- User string
|
|
|
- }
|
|
|
- Industry string
|
|
|
- Frequency string
|
|
|
- HotWords []string
|
|
|
- DefaultEntList []string //企业查询默认展示企业
|
|
|
- BidSearchOldUserLimit int64
|
|
|
- File_number int
|
|
|
- AttachmentRPC string
|
|
|
- FollowPushRpc string
|
|
|
- SmsServiceRpc string
|
|
|
- FileSignBool bool
|
|
|
- FollowCustomer struct {
|
|
|
- CustomerNumb int
|
|
|
- EnterpriseNumb int
|
|
|
- }
|
|
|
- ExhibitionLog string
|
|
|
- TipInfo map[string]int64
|
|
|
- SessionTimeout int
|
|
|
+ WebPort string
|
|
|
+ Mail []struct {
|
|
|
+ Addr string
|
|
|
+ Port int
|
|
|
+ Pwd string
|
|
|
+ User string
|
|
|
+ }
|
|
|
+ Industry string
|
|
|
+ Frequency string
|
|
|
+ HotWords []string
|
|
|
+ DefaultEntList []string //企业查询默认展示企业
|
|
|
+ BidSearchOldUserLimit int64
|
|
|
+ File_number int
|
|
|
+ AttachmentRPC string
|
|
|
+ FollowPushRpc string
|
|
|
+ SmsServiceRpc string
|
|
|
+ FileSignBool bool
|
|
|
+ FollowCustomer struct {
|
|
|
+ CustomerNumb int
|
|
|
+ EnterpriseNumb int
|
|
|
+ }
|
|
|
+ ExhibitionLog string
|
|
|
+ TipInfo map[string]int64
|
|
|
}
|
|
|
type BidColl struct {
|
|
|
- PayUserCollLimit int //付费用户收藏数量最大限制
|
|
|
- FreeUserCollLimit int //免费用户收藏数量最大限制
|
|
|
- Pagesize int //付费用户收藏列表每页展示数量
|
|
|
- FreePageSize int //免费用户收藏列表展示数量
|
|
|
- LabelMaxCount int //标签数量最大限制
|
|
|
- CollRedisDb string //收藏的bid redis key
|
|
|
- IsCollRedisTime int //是否收藏redis过期时间
|
|
|
- CollListRedisTime int //收藏列表redis过期时间
|
|
|
- CollListRedisMaxCount int //收藏列表redis最大条数限制
|
|
|
+ PayUserCollLimit int //付费用户收藏数量最大限制
|
|
|
+ FreeUserCollLimit int //免费用户收藏数量最大限制
|
|
|
+ Pagesize int //付费用户收藏列表每页展示数量
|
|
|
+ FreePageSize int //免费用户收藏列表展示数量
|
|
|
+ LabelMaxCount int //标签数量最大限制
|
|
|
+ CollRedisDb string //收藏的bid redis key
|
|
|
+ IsCollRedisTime int //是否收藏redis过期时间
|
|
|
+ CollListRedisTime int //收藏列表redis过期时间
|
|
|
+ CollListRedisMaxCount int //收藏列表redis最大条数限制
|
|
|
}
|
|
|
|
|
|
type AdLeague struct {
|
|
|
- Exposure string //广告曝光记录接口
|
|
|
- Click string //点击接口
|
|
|
+ Exposure string //广告曝光记录接口
|
|
|
+ Click string //点击接口
|
|
|
}
|
|
|
|
|
|
type ShareF struct {
|
|
|
- JobNum int
|
|
|
- WorkerNum int
|
|
|
- ShareRedis string
|
|
|
- Webdomain string
|
|
|
- SaveTime int
|
|
|
- MayActive string //活动标识
|
|
|
+ JobNum int
|
|
|
+ WorkerNum int
|
|
|
+ ShareRedis string
|
|
|
+ Webdomain string
|
|
|
+ SaveTime int
|
|
|
+ MayActive string //活动标识
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
- Config *config
|
|
|
- BidCollConfig *BidColl
|
|
|
- AdLeaguefig *AdLeague
|
|
|
- ShareConfig *ShareF
|
|
|
- Middleground *middleground.Middleground
|
|
|
- Compatible *compatible.Compatible
|
|
|
+ Config *config
|
|
|
+ BidCollConfig *BidColl
|
|
|
+ AdLeaguefig *AdLeague
|
|
|
+ ShareConfig *ShareF
|
|
|
+ Middleground *middleground.Middleground
|
|
|
+ Compatible *compatible.Compatible
|
|
|
)
|
|
|
|
|
|
func init() {
|