Пример #1
0
func (this *ReplyController) Delete() {
	tid := this.Input().Get("tid")
	err := models.DeleteReply(this.Input().Get("rid"))
	if err != nil {
		beego.Error(err)
	}

	this.Redirect("/topic/view/"+tid, 302)
}
Пример #2
0
func (this *ReplyController) Delete() {
	if !checkAccount(this.Ctx) {
		return
	}

	tid := this.Input().Get("tid")
	rid := this.Input().Get("rid")

	err := models.DeleteReply(rid)
	if err != nil {
		beego.Error(err)
	}

	this.Redirect("/topic/view/"+tid, 302)
}