This commit is contained in:
2026-02-18 17:54:07 +08:00
parent 378b9bd71f
commit e679a9402f
11 changed files with 739 additions and 5 deletions
@@ -64,6 +64,7 @@ public function up()
$table->string('name')->comment('字典名称');
$table->string('code')->unique()->comment('字典编码');
$table->text('description')->nullable()->comment('字典描述');
$table->string('value_type')->default('string')->comment('值类型:string, number, boolean, json');
$table->boolean('status')->default(true)->comment('状态');
$table->integer('sort')->default(0)->comment('排序');
$table->timestamps();
+8
View File
@@ -531,6 +531,7 @@ private function createSystemDictionaries(): void
'name' => '用户状态',
'code' => 'user_status',
'description' => '用户账号状态',
'value_type' => 'number',
'sort' => 1,
'status' => 1,
],
@@ -538,6 +539,7 @@ private function createSystemDictionaries(): void
'name' => '性别',
'code' => 'gender',
'description' => '用户性别',
'value_type' => 'number',
'sort' => 2,
'status' => 1,
],
@@ -545,6 +547,7 @@ private function createSystemDictionaries(): void
'name' => '角色状态',
'code' => 'role_status',
'description' => '角色启用状态',
'value_type' => 'number',
'sort' => 3,
'status' => 1,
],
@@ -552,6 +555,7 @@ private function createSystemDictionaries(): void
'name' => '字典状态',
'code' => 'dictionary_status',
'description' => '数据字典状态',
'value_type' => 'number',
'sort' => 4,
'status' => 1,
],
@@ -559,6 +563,7 @@ private function createSystemDictionaries(): void
'name' => '任务状态',
'code' => 'task_status',
'description' => '定时任务状态',
'value_type' => 'number',
'sort' => 5,
'status' => 1,
],
@@ -566,6 +571,7 @@ private function createSystemDictionaries(): void
'name' => '日志类型',
'code' => 'log_type',
'description' => '系统日志类型',
'value_type' => 'string',
'sort' => 6,
'status' => 1,
],
@@ -573,6 +579,7 @@ private function createSystemDictionaries(): void
'name' => '是否',
'code' => 'yes_no',
'description' => '是否选项',
'value_type' => 'boolean',
'sort' => 7,
'status' => 1,
],
@@ -580,6 +587,7 @@ private function createSystemDictionaries(): void
'name' => '配置分组',
'code' => 'config_group',
'description' => '系统配置分组类型',
'value_type' => 'string',
'sort' => 8,
'status' => 1,
],