This commit is contained in:
2023-04-17 16:39:17 +08:00
parent c58012c357
commit 76a40a798b
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -38,6 +38,7 @@ abstract class GiiBase
'int' => ['tinyint', 'smallint', 'mediumint', 'int', 'bigint'],
'string' => ['char', 'varchar', 'tinytext', 'text', 'mediumtext', 'longtext', 'enum'],
'date' => ['date'],
'json' => ['json'],
'time' => ['time'],
'year' => ['year'],
'datetime' => ['datetime'],
+8
View File
@@ -546,6 +546,14 @@ use Kiri\Router\Annotate\AutoController;
',
};
} else if ($_key == 'json') {
$class .= '
/**
* ' . (empty($comment) ? '这批懒的很,没写注释' : $comment) . '
*/
public ?array $' . $val['Field'] . ' = null;
';
} else {
if (isset($number[0])) {
if (strpos(',', $number[0])) {