diff --git a/app/Http/Controllers/Admin/UserController.php b/app/Http/Controllers/Admin/UserController.php index 28ba2a3..76cdfb5 100755 --- a/app/Http/Controllers/Admin/UserController.php +++ b/app/Http/Controllers/Admin/UserController.php @@ -408,6 +408,7 @@ class UserController extends BaseController * @OA\Parameter(name="remark", in="query", @OA\Schema(type="string"), description="备注"), * @OA\Parameter(name="is_black", in="query", @OA\Schema(type="string"), description="是否黑名单0否1是"), * @OA\Parameter(name="has_appointment_total", in="query", @OA\Schema(type="string"), description="预约剩余次数"), + * @OA\Parameter(name="from", in="query", @OA\Schema(type="string"), description="来源"), * @OA\Response( * response=200, * description="操作成功" diff --git a/database/migrations/2025_08_14_105924_alert_users_table.php b/database/migrations/2025_08_14_105924_alert_users_table.php index 868ef19..30c1bff 100644 --- a/database/migrations/2025_08_14_105924_alert_users_table.php +++ b/database/migrations/2025_08_14_105924_alert_users_table.php @@ -16,6 +16,8 @@ return new class extends Migration Schema::table('users', function (Blueprint $table) { // 是否黑名单 $table->boolean('is_black')->default(0)->comment('是否黑名单'); + // 来源 + $table->string('from')->nullable()->comment('来源'); }); }