更行书籍书籍的排序
()
| 908 | |
| 909 | // 更行书籍书籍的排序 |
| 910 | func (this *ManagerController) UpdateBookSort() { |
| 911 | bookId, _ := this.GetInt("book_id") |
| 912 | orderIndex, _ := this.GetInt("value") |
| 913 | if bookId > 0 { |
| 914 | if _, err := orm.NewOrm().QueryTable("md_books").Filter("book_id", bookId).Update(orm.Params{ |
| 915 | "order_index": orderIndex, |
| 916 | }); err != nil { |
| 917 | this.JsonResult(1, err.Error()) |
| 918 | } |
| 919 | } |
| 920 | this.JsonResult(0, "排序更新成功") |
| 921 | } |
| 922 | |
| 923 | func (this *ManagerController) Sitemap() { |
| 924 | baseUrl := this.Ctx.Input.Scheme() + "://" + this.Ctx.Request.Host |
nothing calls this directly
no test coverage detected