func (this *ServiceOperationController) Get() { id, err := this.GetInt64("sid", 0) if id == 0 { this.Data["json"] = "" this.ServeJSON() } operation := entity.Operation{} if err == nil { operation.Id = id err = operation.Load() if err == nil { this.Data["json"] = &operation this.ServeJSON() } else { this.Data["json"] = "" this.ServeJSON() } } }