|
@@ -5,33 +5,34 @@ package coreconfig
|
|
|
|
|
|
//系统配置
|
|
|
type config struct {
|
|
|
- Webserverport string `json:"webServerPort"` //web服务器端口
|
|
|
- Redisservers string `json:"redisServers"` //redis缓存服务器列表
|
|
|
- Useredis bool `json:"useRedis"`
|
|
|
- Mongodbservers string `json:"mongodbServers"` //mongodb节点
|
|
|
- MongodbPoolSize int `json:"mongodbPoolSize"`
|
|
|
- MongodbName string `json:"mongodbName"`
|
|
|
- Elasticsearch string `json:"elasticsearch"`
|
|
|
- Smtp smtp `json:"smtp"`
|
|
|
- Sms sms `json:"sms"`
|
|
|
- Entrelation entrelation `json:"entrelation”`
|
|
|
- Allownfiletype string `json:"allownfiletype"`
|
|
|
- Filesize int `json:"filesize"`
|
|
|
- TemplateCache bool `json:"templateCache"`
|
|
|
- HttpCache bool `json:"httpCache"`
|
|
|
- MailFailureTime int `json:"mailFailureTime"`
|
|
|
- ChatServer string `json:"chatServer"`
|
|
|
- ChatRpc string `json:"chatRpc"`
|
|
|
- PushRpc string `json:"pushRpc"`
|
|
|
- ElasticPoolSize int `json:"elasticPoolSize"`
|
|
|
- Ocr_uid string `json:"orc_uid"`
|
|
|
- Ocr_servicekey string `json:"ocr_servicekey"`
|
|
|
- Ocr_servicecode string `json:"ocr_servicecode"`
|
|
|
- EntMongodbservers string `json:"entMongodbServers"` //mongodb节点
|
|
|
- EntMongodbPoolSize int `json:"entMongodbPoolSize"`
|
|
|
- EntMongodbName string `json:"entMongodbName"`
|
|
|
- EntMongodbAlias string `json:"entMongodbAlias"`
|
|
|
- FollowEnterprise int `json:"followEnterprise"`
|
|
|
+ Webserverport string `json:"webServerPort"` //web服务器端口
|
|
|
+ Redisservers string `json:"redisServers"` //redis缓存服务器列表
|
|
|
+ Useredis bool `json:"useRedis"`
|
|
|
+ Mongodbservers string `json:"mongodbServers"` //mongodb节点
|
|
|
+ MongodbPoolSize int `json:"mongodbPoolSize"`
|
|
|
+ MongodbName string `json:"mongodbName"`
|
|
|
+ Elasticsearch string `json:"elasticsearch"`
|
|
|
+ Smtp smtp `json:"smtp"`
|
|
|
+ Sms sms `json:"sms"`
|
|
|
+ Entrelation entrelation `json:"entrelation”`
|
|
|
+ Allownfiletype string `json:"allownfiletype"`
|
|
|
+ Filesize int `json:"filesize"`
|
|
|
+ TemplateCache bool `json:"templateCache"`
|
|
|
+ HttpCache bool `json:"httpCache"`
|
|
|
+ MailFailureTime int `json:"mailFailureTime"`
|
|
|
+ ChatServer string `json:"chatServer"`
|
|
|
+ ChatRpc string `json:"chatRpc"`
|
|
|
+ PushRpc string `json:"pushRpc"`
|
|
|
+ ElasticPoolSize int `json:"elasticPoolSize"`
|
|
|
+ Ocr_uid string `json:"orc_uid"`
|
|
|
+ Ocr_servicekey string `json:"ocr_servicekey"`
|
|
|
+ Ocr_servicecode string `json:"ocr_servicecode"`
|
|
|
+ EntMongodbservers string `json:"entMongodbServers"` //mongodb节点
|
|
|
+ EntMongodbPoolSize int `json:"entMongodbPoolSize"`
|
|
|
+ EntMongodbName string `json:"entMongodbName"`
|
|
|
+ EntMongodbAlias string `json:"entMongodbAlias"`
|
|
|
+ FollowEnterprise int `json:"followEnterprise"`
|
|
|
+ AtrrTitle map[string]interface{} `json:"atrrTitle"`
|
|
|
}
|
|
|
type smtp struct {
|
|
|
Addr string `json:"addr"`
|