|
@@ -61,11 +61,10 @@ func init() {
|
|
|
cluster.DeleteInstance(InstanceId)
|
|
|
c.JSON(200, gin.H{"rep": true})
|
|
|
})
|
|
|
- //释放ecs实例
|
|
|
+ //数据库删除ecs实例
|
|
|
Admin.POST("/distribution/deleteInstancedb", func(c *gin.Context) {
|
|
|
InstanceId, _ := c.GetPostForm("InstanceId")
|
|
|
- log.Println(InstanceId)
|
|
|
- b := db.Mgo.Del("ecs",`{"InstanceId":"`+InstanceId+`"}`)
|
|
|
+ b := db.Mgo.Del("ecs", `{"InstanceId":"`+InstanceId+`"}`)
|
|
|
c.JSON(200, gin.H{"rep": b})
|
|
|
})
|
|
|
|