wangshan 1 anno fa
parent
commit
55fb9f2e59
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 5 4
      public/db.go

+ 5 - 4
public/db.go

@@ -23,6 +23,8 @@ var (
 	Mgo_Log           m.MongodbSim
 	Mgo_Bidding       m.MongodbSim
 	//Mgo_Qyfw    m.MongodbSim
+	Other elastic.Es
+	Free  elastic.Es //登录后的免费用户搜索使用
 )
 
 type dbConf struct {
@@ -38,6 +40,7 @@ type dbConf struct {
 		Main  *esConf
 		Doc   *esConf
 		Other *esConf
+		Free  *esConf
 	}
 	Redis struct {
 		Main  *redisConf
@@ -67,6 +70,8 @@ type esConf struct {
 	Size     int
 	UserName string
 	Password string
+	EsIndex  string
+	EsType   string
 }
 type redisConf struct {
 	Address string
@@ -80,10 +85,6 @@ type mysqlConf struct {
 	MaxIdleConns int
 }
 
-var (
-	Other elastic.Es
-)
-
 func init() {
 	util.ReadConfig("./db.json", &DbConf)
 	if DbConf != nil {