变更
This commit is contained in:
@@ -38,6 +38,7 @@ abstract class GiiBase
|
|||||||
'int' => ['tinyint', 'smallint', 'mediumint', 'int', 'bigint'],
|
'int' => ['tinyint', 'smallint', 'mediumint', 'int', 'bigint'],
|
||||||
'string' => ['char', 'varchar', 'tinytext', 'text', 'mediumtext', 'longtext', 'enum'],
|
'string' => ['char', 'varchar', 'tinytext', 'text', 'mediumtext', 'longtext', 'enum'],
|
||||||
'date' => ['date'],
|
'date' => ['date'],
|
||||||
|
'json' => ['json'],
|
||||||
'time' => ['time'],
|
'time' => ['time'],
|
||||||
'year' => ['year'],
|
'year' => ['year'],
|
||||||
'datetime' => ['datetime'],
|
'datetime' => ['datetime'],
|
||||||
|
|||||||
@@ -546,6 +546,14 @@ use Kiri\Router\Annotate\AutoController;
|
|||||||
|
|
||||||
',
|
',
|
||||||
};
|
};
|
||||||
|
} else if ($_key == 'json') {
|
||||||
|
$class .= '
|
||||||
|
/**
|
||||||
|
* ' . (empty($comment) ? '这批懒的很,没写注释' : $comment) . '
|
||||||
|
*/
|
||||||
|
public ?array $' . $val['Field'] . ' = null;
|
||||||
|
|
||||||
|
';
|
||||||
} else {
|
} else {
|
||||||
if (isset($number[0])) {
|
if (isset($number[0])) {
|
||||||
if (strpos(',', $number[0])) {
|
if (strpos(',', $number[0])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user