|
@@ -13,7 +13,7 @@ var EntClaimSrv EntClaimService
|
|
|
|
|
|
func init() {
|
|
func init() {
|
|
entity.Mysql = &mysql.Mysql{
|
|
entity.Mysql = &mysql.Mysql{
|
|
- Address: "192.168.3.14:4000",
|
|
|
|
|
|
+ Address: "192.168.3.217:4000",
|
|
UserName: "root",
|
|
UserName: "root",
|
|
PassWord: "=PDT49#80Z!RVv52_z",
|
|
PassWord: "=PDT49#80Z!RVv52_z",
|
|
DBName: "medical_fileld_data",
|
|
DBName: "medical_fileld_data",
|
|
@@ -22,7 +22,7 @@ func init() {
|
|
}
|
|
}
|
|
entity.Mysql.Init()
|
|
entity.Mysql.Init()
|
|
BaseMysqlConn := &mysql.Mysql{
|
|
BaseMysqlConn := &mysql.Mysql{
|
|
- Address: "192.168.3.14:4000",
|
|
|
|
|
|
+ Address: "192.168.3.217:4000",
|
|
UserName: "root",
|
|
UserName: "root",
|
|
PassWord: "=PDT49#80Z!RVv52_z",
|
|
PassWord: "=PDT49#80Z!RVv52_z",
|
|
DBName: "base_service",
|
|
DBName: "base_service",
|
|
@@ -30,9 +30,19 @@ func init() {
|
|
MaxIdleConns: 5,
|
|
MaxIdleConns: 5,
|
|
}
|
|
}
|
|
BaseMysqlConn.Init()
|
|
BaseMysqlConn.Init()
|
|
|
|
+ CommonMysqlConn := &mysql.Mysql{
|
|
|
|
+ Address: "192.168.3.217:4000",
|
|
|
|
+ UserName: "root",
|
|
|
|
+ PassWord: "=PDT49#80Z!RVv52_z",
|
|
|
|
+ DBName: "global_common_data",
|
|
|
|
+ MaxOpenConns: 5,
|
|
|
|
+ MaxIdleConns: 5,
|
|
|
|
+ }
|
|
|
|
+ CommonMysqlConn.Init()
|
|
MyConn := entity.Conn{
|
|
MyConn := entity.Conn{
|
|
- Mysql: entity.Mysql,
|
|
|
|
- BaseMysql: BaseMysqlConn,
|
|
|
|
|
|
+ Mysql: entity.Mysql,
|
|
|
|
+ BaseMysql: BaseMysqlConn,
|
|
|
|
+ GlobalCommonData: CommonMysqlConn,
|
|
}
|
|
}
|
|
EntClaimSrv = *NewEntClaimSrv(&MyConn)
|
|
EntClaimSrv = *NewEntClaimSrv(&MyConn)
|
|
elastic.InitElasticSize("http://192.168.3.206:9800", 5)
|
|
elastic.InitElasticSize("http://192.168.3.206:9800", 5)
|