12345678910111213141516171819202122232425262728293031 |
- package vars
- import (
- qutil "app.yhyue.com/moapp/jybase/common"
- )
- var Config *config
- type config struct {
- WebPort string `json:"webPort"` //服务端口
- Ahead AheadConfig `json:"ahead"` //超前项目配置
- Custom CustomConfig `json:"custom"` //定制化报告配置
- TestUid []string `json:"testUid"` //测试用户id
- }
- type AheadConfig struct {
- Prop float64 `json:"prop"` //新增用户百分比
- DailyTimes int `json:"dailyTimes"` //每日展示次数
- SaveClickTimes int `json:"saveClickTimes"` //保留用户的点击量
- UpdateCron string `json:"updateCron"` //更新周活用户
- }
- type CustomConfig struct {
- SearchPool int `json:"searchPool"` //检索并发池
- UpdateCron string `json:"updateCron"` //更新周活用户
- }
- func init() {
- //程序配置文件
- qutil.ReadConfig(&Config)
- }
|