//删除相册 func (this *AlbumController) Delete() { id, _ := this.GetInt64("albumid") album := models.Album{Id: id} h, _ := strconv.Atoi(this.GetString("ishide")) album.Ishide = int8(h) if err := album.Update("ishide"); err != nil { this.showmsg(err.Error()) return } this.Redirect("/admin/album/list", 302) }