parent
5789f5190b
commit
59c34f1455
|
@ -44,8 +44,8 @@ func (l *CreateClusterLogic) CreateCluster(req *types.ClusterCreateReq) (resp *t
|
||||||
cluster.CreateTime = time.Now().Format("2006-01-02 15:04:05")
|
cluster.CreateTime = time.Now().Format("2006-01-02 15:04:05")
|
||||||
cluster.OwnerId = "0"
|
cluster.OwnerId = "0"
|
||||||
// 获取集群经纬度
|
// 获取集群经纬度
|
||||||
location, err := GeoMap(req.RegionName)
|
//location, err := GeoMap(req.RegionName)
|
||||||
cluster.Location = location
|
//cluster.Location = location
|
||||||
|
|
||||||
cluster.Id = tool.GenSnowflakeIDStr()
|
cluster.Id = tool.GenSnowflakeIDStr()
|
||||||
tx := l.svcCtx.DbEngin.Table("t_cluster").Create(&cluster)
|
tx := l.svcCtx.DbEngin.Table("t_cluster").Create(&cluster)
|
||||||
|
|
Loading…
Reference in New Issue