We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3a3815 commit 70c673aCopy full SHA for 70c673a
de/13.5.md
@@ -151,7 +151,7 @@ type DeleteController struct {
151
152
func (this *DeleteController) Get() {
153
id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"])
154
- blog := models.GetBlog(id int)
+ blog := models.GetBlog(id)
155
this.Data["Post"] = blog
156
models.DelBlog(blog)
157
this.Ctx.Redirect(302, "/")
zh/13.5.md
@@ -126,7 +126,7 @@ DeleteController
126
127
128
129
130
131
132
0 commit comments