func (this *HostGroupController) Delete() {
	jsonResult := g.JsonResult{}

	id, _ := this.GetInt64("Id")
	item := models.HostGroup{Id: id}
	result, err := item.DeleteByPK()
	if nil != err {
		jsonResult.Message = err.Error()
	} else if result > 0 {
		jsonResult.Success = true
	} else {
		jsonResult.Message = "更新失败,数据不存在"
	}

	this.Data["json"] = &jsonResult
	this.ServeJSON()
}