master
parent
fe337dc654
commit
164266c924
@ -0,0 +1,35 @@ |
||||
<?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); |
||||
|
||||
|
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue