示例#1
0
文件: default.go 项目: robinmin/beego
func (this *ObjectController) Delete() {
	objectId := this.Ctx.Input.Param[":objectId"]
	models.Delete(objectId)
	this.Data["json"] = "delete success!"
	this.ServeJson()
}
示例#2
0
func (o *ObjectController) Delete() {
	objectId := o.Ctx.Input.Params[":objectId"]
	models.Delete(objectId)
	o.Data["json"] = "delete success!"
	o.ServeJson()
}