//删除 func (c Content) Delete(article *models.Article) revel.Result { var cid string = c.Params.Get("cid") var ids []int64 c.Params.Bind(&ids, "ids") if len(ids) <= 0 { c.Flash.Error("请至少选择一个!") c.Flash.Out["url"] = "/Content/list/" + cid + "/" return c.Redirect("/Message/") } for _, Id := range ids { article.DelByID(Id) } c.Flash.Success("删除成功!") c.Flash.Out["url"] = "/Content/list/" + cid + "/" return c.Redirect("/Message/") }