//删除说说 func (this *MoodController) Delete() { id, _ := this.GetInt("id") mood := models.Mood{Id: id} if mood.Read() == nil { mood.Delete() } this.Redirect("/admin/mood/list", 302) }