dataLists(new GoodsRecordLists()); } /** * @notes 删除抢单记录 * @return \think\response\Json * @author BD * @date 2024/03/19 02:29 */ public function delete() { $params = (new GoodsRecordValidate())->post()->goCheck('delete'); GoodsRecordLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 派单 * @return \think\response\Json * @author BD * @date 2024/03/19 02:29 */ public function dispatch() { $params = (new GoodsRecordValidate())->post()->goCheck('dispatch'); $result = GoodsRecordLogic::dispatch($params); if (true === $result) { return $this->success('派单成功', [], 1, 1); } return $this->fail(GoodsRecordLogic::getError()); } }