()
| 683 | } |
| 684 | |
| 685 | func (this *ManagerController) SetCommentStatus() { |
| 686 | id, _ := this.GetInt("id") |
| 687 | status, _ := this.GetInt("value") |
| 688 | field := this.GetString("field") |
| 689 | if id > 0 && field == "status" { |
| 690 | if err := models.NewComments().SetCommentStatus(id, status); err != nil { |
| 691 | this.JsonResult(1, err.Error()) |
| 692 | } |
| 693 | } |
| 694 | this.JsonResult(0, "设置成功") |
| 695 | } |
| 696 | |
| 697 | // 设置书籍私有状态. |
| 698 | func (this *ManagerController) PrivatelyOwned() { |
nothing calls this directly
no test coverage detected