|
|
@@ -175,12 +175,12 @@ func getcurl(url string) (string, error) { |
|
|
|
return string(body), nil |
|
|
|
} |
|
|
|
func Del(c *gin.Context) { |
|
|
|
var req *md.ArticleDelReq |
|
|
|
var req *md.CloudBundleDelReq |
|
|
|
if err := c.ShouldBindJSON(&req); err != nil { |
|
|
|
e.OutErr(c, e.ERR_INVALID_ARGS, err) |
|
|
|
return |
|
|
|
} |
|
|
|
db.Db.In("id", req.Id).Delete(&model.CloudBundle{}) |
|
|
|
db.Db.In("id", req.Ids).Delete(&model.CloudBundle{}) |
|
|
|
e.OutSuc(c, "success", nil) |
|
|
|
return |
|
|
|
} |
|
|
|