改名
This commit is contained in:
+1
-6
@@ -20,12 +20,7 @@ class Command extends \Console\Command
|
|||||||
public string $command = 'sw:gii';
|
public string $command = 'sw:gii';
|
||||||
|
|
||||||
|
|
||||||
public string $description = './snowflake sw:gii make=model table=xxxx databases=xxx' . "\v" .
|
public string $description = './snowflake sw:gii make=model|controller|task|interceptor|limits|middleware name=xxxx';
|
||||||
'./snowflake sw:gii make=controller table=xxxx databases=xxx' . "\v" .
|
|
||||||
'./snowflake sw:gii make=task name=xxxx' . "\v" .
|
|
||||||
'./snowflake sw:gii make=interceptor name=xxxx' . "\v" .
|
|
||||||
'./snowflake sw:gii make=limits name=xxxx' . "\v" .
|
|
||||||
'./snowflake sw:gii make=middleware name=xxxx' . "\v";
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+2
-2
@@ -131,8 +131,8 @@ class Gii
|
|||||||
private function makeByDatabases($make, $input): array
|
private function makeByDatabases($make, $input): array
|
||||||
{
|
{
|
||||||
$redis = Snowflake::app()->getRedis();
|
$redis = Snowflake::app()->getRedis();
|
||||||
if (!empty($input->get('table'))) {
|
if (!empty($input->get('name'))) {
|
||||||
$this->tableName = $input->get('table');
|
$this->tableName = $input->get('name');
|
||||||
$redis->del('column:' . $this->tableName);
|
$redis->del('column:' . $this->tableName);
|
||||||
}
|
}
|
||||||
return match ($make) {
|
return match ($make) {
|
||||||
|
|||||||
Reference in New Issue
Block a user