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