You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/app/command/DeleteEsGoods.php

35 lines
773 B

<?php
namespace app\command;
use app\common\service\GoodsCateEs;
use app\common\service\GoodsEs;
use think\console\Command;
use think\console\Output;
use think\console\Input;
class DeleteEsGoods extends Command
{
protected function configure()
{
// 指令配置
$this->setName('DeleteEsGoods')->setDescription('删除es商品');
$this->addArgument("store_id");
$this->addArgument("goods_id");
}
protected function execute(Input $input, Output $output)
{
$store_id = $input->getArgument("store_id");
$goods_id = $input->getArgument("goods_id");
$goodsCateService = new GoodsCateEs();
$goodsCateService->deleteEsGoods($store_id, $goods_id);
}
}