新增导入树状数据方法

This commit is contained in:
JaguarJack
2020-04-29 15:05:49 +08:00
parent 76855d6b5d
commit 514bb6b520
5 changed files with 70 additions and 1 deletions

View File

@@ -4,7 +4,6 @@ declare (strict_types = 1);
namespace catcher\command;
use catcher\CatchAdmin;
use think\Config;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument;

View File

@@ -0,0 +1,32 @@
<?php
declare (strict_types = 1);
namespace catcher\command\Tools;
use catcher\CatchAdmin;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;
use think\facade\Db;
class BackUpDataCommand extends Command
{
protected $table;
protected function configure()
{
// 指令配置
$this->setName('backup:data')
->addArgument('tables', Argument::REQUIRED, 'backup tables')
->addOption('zip', '-z',Option::VALUE_NONE, 'is need zip')
->setDescription('backup data you need');
}
protected function execute(Input $input, Output $output)
{
$output->info('succeed!');
}
}