From 27d7a1662b42be08746a8f25420916fa9b9d9a0a Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Wed, 18 Mar 2026 10:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=9B=E5=BB=BA=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/AdminUsers.php | 1 + app/Services/AdminUsersService.php | 2 ++ database/migrations/2026_01_27_084640_create_admin_table.php | 1 + 3 files changed, 4 insertions(+) diff --git a/app/Models/AdminUsers.php b/app/Models/AdminUsers.php index 4b15d58..79171fb 100644 --- a/app/Models/AdminUsers.php +++ b/app/Models/AdminUsers.php @@ -25,6 +25,7 @@ class AdminUsers extends Model 'position', 'status', 'avatar', + 'packing_id', 'last_login_time' ]; diff --git a/app/Services/AdminUsersService.php b/app/Services/AdminUsersService.php index 7c3d58d..829fa95 100644 --- a/app/Services/AdminUsersService.php +++ b/app/Services/AdminUsersService.php @@ -51,6 +51,7 @@ final class AdminUsersService 'email' => $data['email'] ?? '', 'position' => $data['position'] ?? '', 'status' => $data['status'], + 'packing_id' => $data['packing_id'], 'created_at' => get_datetime() ]); @@ -103,6 +104,7 @@ final class AdminUsersService 'email' => $data['email'] ?? '', 'position' => $data['position'] ?? '', 'status' => $data['status'], + 'packing_id' => $data['packing_id'], 'created_at' => get_datetime() ]); diff --git a/database/migrations/2026_01_27_084640_create_admin_table.php b/database/migrations/2026_01_27_084640_create_admin_table.php index 0cfafb8..133ca2d 100644 --- a/database/migrations/2026_01_27_084640_create_admin_table.php +++ b/database/migrations/2026_01_27_084640_create_admin_table.php @@ -23,6 +23,7 @@ return new class extends Migration $table->string('locale', 10)->nullable()->comment('语言'); $table->string('position')->nullable()->comment('职位'); $table->timestamp('last_login_time')->nullable()->comment('最后登录时间'); + $table->integer('packing_id')->nullable()->comment('所属停车场ID'); $table->softDeletes(); $table->timestamps(); $table->innoDb();