商品、订单部分相关代码生成,下一步先把商品搞完再搞订单
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled

This commit is contained in:
2025-05-20 16:52:47 +08:00
parent 5bd5938e5c
commit 035ab1105c
45 changed files with 1951 additions and 151 deletions

View File

@@ -15,7 +15,9 @@ class CodeGenerationService
{
const TEXT_TYPE = [
'LONGTEXT',
'TEXT'
'TEXT',
'longtext',
'text',
];
const INT_TYPE = [
'INT',
@@ -23,6 +25,13 @@ class CodeGenerationService
'BIGINT',
'SMALLINT',
'FLOAT',
'DECIMAL',
'int',
'tinyint',
'bigint',
'smallint',
'float',
'decimal',
];
private static mixed $_instance;
@@ -140,6 +149,8 @@ class CodeGenerationService
'created_at' => time(),
'updated_at' => time(),
]);
// 删除Store/app/www
Storage::deleteDirectory('www');
return [
'id' => $insertModel->id,
'file_name' => $insertModel->file_name