12345678910111213141516171819202122232425262728293031323334353637 |
- package config
- import (
- "jyBXBase/entity"
- "github.com/zeromicro/go-zero/zrpc"
- )
- type Config struct {
- zrpc.RpcServerConf
- Webrpcport int64
- BidSearchOldUserLimit int64
- FileSignBool bool
- UnitAppend string //数值单位后面的加号 写死的目前
- UserCenterKey string
- PowerCheckCenterKey string
- EntManageApplication string
- NewsLimitNum int64 // 移动端首页最新标讯数量限制
- NewsTimeOut int64 //更新数据时间
- NewsCache struct { // 最新标讯缓存配置
- NoLogin cacheConfig // 未登录用户缓存key
- LoginUser cacheConfig // 登录用户有推送数据使用的key
- Login cacheConfig // 登录用户没有推送数据最新标讯使用的key
- Count cacheConfig // 查询用户有没有推送数据使用的key
- }
- }
- type cacheConfig struct {
- Key string // 缓存key
- Timeout int // 缓存时间
- }
- type Db struct {
- Mysql entity.Mysql `json:"mysql"`
- Redis entity.RedisStuct `json:"redis"`
- Es entity.EsStruct `json:"es"`
- Mongo entity.Mongo `json:"mongo"`
- }
|