dataLists(new GoodsGatherLogLists()); } /** * @notes 采集 * @return \think\response\Json * @author ljj * @date 2023/3/13 6:36 下午 */ public function gather() { $params = (new GoodsGatherValidate())->post()->goCheck('gather'); $result = (new GoodsGatherLogic())->gather($params); if (true !== $result) { return $this->fail($result); } return $this->success('操作成功'); } /** * @notes 删除采集记录 * @return \think\response\Json * @author ljj * @date 2023/3/14 9:41 上午 */ public function del() { $params = (new GoodsGatherValidate())->post()->goCheck('del'); (new GoodsGatherLogic())->del($params); return $this->success('操作成功'); } /** * @notes 商品采集列表 * @return \think\response\Json * @author ljj * @date 2023/3/14 3:06 下午 */ public function lists() { return $this->dataLists(new GoodsGatherLists()); } /** * @notes 采集商品详情 * @return \think\response\Json * @author ljj * @date 2023/3/16 10:56 上午 */ public function gatherGoodsDetail() { $params = (new GoodsGatherValidate())->get()->goCheck('gatherGoodsDetail'); $result = (new GoodsGatherLogic())->gatherGoodsDetail($params); return $this->success('',$result); } /** * @notes 编辑采集商品 * @return \think\response\Json * @author ljj * @date 2023/3/16 11:38 上午 */ public function gatherGoodsEdit() { $params = (new GoodsGatherValidate())->post()->goCheck('gatherGoodsEdit'); (new GoodsGatherLogic())->gatherGoodsEdit($params); return $this->success('操作成功'); } /** * @notes 创建商品 * @return \think\response\Json * @author ljj * @date 2023/3/16 12:09 下午 */ public function createGoods() { $params = (new GoodsGatherValidate())->post()->goCheck('createGoods'); (new GoodsItemValidate())->post()->goCheck('',$params); //商品规格验证 $result = (new GoodsGatherLogic())->createGoods($params); if (true !== $result) { return $this->fail($result); } return $this->success('操作成功'); } }