注释经纬度
Former-commit-id: 9eb803f451ad4bcf7398da6efd6c608c060b40eb
This commit is contained in:
parent
a322bb080a
commit
2530919de2
|
@ -51,11 +51,11 @@ func (l *CreateClusterLogic) CreateCluster(req *types.ClusterCreateReq) (resp *t
|
|||
cluster.CreateTime = time.Now().Format("2006-01-02 15:04:05")
|
||||
cluster.OwnerId = "0"
|
||||
// 获取集群经纬度
|
||||
location, err := GeoMap(req.RegionName)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cluster.Location = location
|
||||
//location, err := GeoMap(req.RegionName)
|
||||
//if err != nil {
|
||||
// return nil, err
|
||||
//}
|
||||
//cluster.Location = location
|
||||
|
||||
cluster.Id = tool.GenSnowflakeIDStr()
|
||||
tx := l.svcCtx.DbEngin.Table("t_cluster").Create(&cluster)
|
||||
|
|
Loading…
Reference in New Issue