func (this *ObjectController) Delete() { objectId := this.Ctx.Input.Param[":objectId"] models.Delete(objectId) this.Data["json"] = "delete success!" this.ServeJson() }
func (o *ObjectController) Delete() { objectId := o.Ctx.Input.Params[":objectId"] models.Delete(objectId) o.Data["json"] = "delete success!" o.ServeJson() }