公共地址配置文件名等

master
shenzhuan 2 years ago
parent 6a65debd62
commit 5d7b13546c

@ -17,10 +17,17 @@ import (
const (
//DTM 服务地址
ConsulIp = "192.168.100.131"
DtmServer = "http://192.168.100.131:36789/api/dtmsvr"
QSIp = "192.168.1.113"
QSBusi = "http://192.168.1.113:6669" //注意本机IP
ConsulIp = "192.168.100.131"
consulStr = "http://" + ConsulIp + ":8500"
consulReistStr = ConsulIp + ":8500"
DtmServer = "http://" + ConsulIp + ":36789/api/dtmsvr"
QSIp = "192.168.1.113"
QSBusi = "http://" + QSIp + ":6669" //注意本机IP
productFileKey = "mysql-product"
tradeFileKey = "mysql-trade"
userFileKey = "mysql-user"
redisFileKey = "redis"
QPS = 100
)
func GetConsulConfig(url string, fileKey string) (*viper.Viper, error) {

Loading…
Cancel
Save