dataLists(new GoodsLists()); } public function hotData(){ $result = GoodsLogic::getHotData(); return $this->data($result); } public function categoryDetail() { $params = (new GoodsValidate())->goCheck('category'); $result = GoodsLogic::detail($params['goods_category_id'],'category',$this->userId); return $this->data($result); } public function goodsDetail() { $params = (new GoodsValidate())->goCheck('goods'); $result = GoodsLogic::detail($params['id'],'goods'); return $this->data($result); } public function eventGoodsDetail() { $params = (new GoodsValidate())->goCheck('goods'); $result = GoodsLogic::eventDetail($params['id'],$this->userId); return $this->data($result); } public function firmGoodLists() { return $this->dataLists(new FirmGoodLists()); } public function firmGoodDetail(){ $params = (new GoodsValidate())->get()->goCheck('goods',[ 'user_id'=>$this->userId ]); $result = GoodsLogic::firmGoodsDetail($params); if (false !== $result) { return $this->data($result); } return $this->fail(GoodsLogic::getError()); } public function submitFirmGood() { $params = (new GoodsValidate())->post()->goCheck('submitGood'); $result = GoodsLogic::sync($params,$this->userId); if (true === $result) { return $this->success('已提交', [], 1, 1); } return $this->fail(GoodsLogic::getError()); } }