-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
118 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
src/Components/model/src/Cli/Table/Event/GenerateModelEvents.php
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
src/Components/model/src/Cli/Table/Event/Param/AfterGenerateTable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Imi\Model\Cli\Table\Event\Param; | ||
|
||
use Imi\Event\CommonEvent; | ||
|
||
class AfterGenerateTable extends CommonEvent | ||
{ | ||
use TGenerateTable; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/Components/model/src/Cli/Table/Event/Param/AfterGenerateTables.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Imi\Model\Cli\Table\Event\Param; | ||
|
||
use Imi\Event\CommonEvent; | ||
|
||
class AfterGenerateTables extends CommonEvent | ||
{ | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Components/model/src/Cli/Table/Event/Param/BeforeGenerateTable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Imi\Model\Cli\Table\Event\Param; | ||
|
||
use Imi\Event\CommonEvent; | ||
|
||
class BeforeGenerateTable extends CommonEvent | ||
{ | ||
use TGenerateTable; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/Components/model/src/Cli/Table/Event/Param/BeforeGenerateTables.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Imi\Model\Cli\Table\Event\Param; | ||
|
||
use Imi\Event\CommonEvent; | ||
|
||
class BeforeGenerateTables extends CommonEvent | ||
{ | ||
} |
32 changes: 32 additions & 0 deletions
32
src/Components/model/src/Cli/Table/Event/Param/TGenerateTable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Imi\Model\Cli\Table\Event\Param; | ||
|
||
trait TGenerateTable | ||
{ | ||
public function __construct( | ||
/** | ||
* 模型类名. | ||
*/ | ||
public string $className, | ||
|
||
/** | ||
* 表名. | ||
*/ | ||
public string $tableName, | ||
|
||
/** | ||
* 是否跳过. | ||
*/ | ||
public bool $skip, | ||
|
||
/** | ||
* DDL 语句. | ||
*/ | ||
public string $ddl, | ||
) { | ||
parent::__construct(static::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters