From ae527f90e88dcffd57d86863fe1d9d81d3bd4bd8 Mon Sep 17 00:00:00 2001 From: hskwon Date: Thu, 6 Nov 2025 20:00:20 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=9D=91?= =?UTF-8?q?=EB=8B=B5=20=EB=A9=94=EB=89=B4=EC=97=90=20=EC=99=B8=EB=B6=80=20?= =?UTF-8?q?=EB=A7=81=ED=81=AC=20=EC=A0=95=EB=B3=B4=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?(is=5Fexternal,=20external=5Furl)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/MemberService.php | 2 +- app/Swagger/v1/AuthApi.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Services/MemberService.php b/app/Services/MemberService.php index c97e586..969b347 100644 --- a/app/Services/MemberService.php +++ b/app/Services/MemberService.php @@ -299,7 +299,7 @@ public static function getUserInfoForLogin(int $userId): array ->whereIn('id', $allowedMenuIds) ->orderBy('parent_id') ->orderBy('sort_order') - ->get(['id', 'parent_id', 'name', 'url', 'icon', 'sort_order']) + ->get(['id', 'parent_id', 'name', 'url', 'icon', 'sort_order', 'is_external', 'external_url']) ->toArray(); } diff --git a/app/Swagger/v1/AuthApi.php b/app/Swagger/v1/AuthApi.php index 3f46763..63164da 100644 --- a/app/Swagger/v1/AuthApi.php +++ b/app/Swagger/v1/AuthApi.php @@ -138,7 +138,9 @@ public function debugApiKey() {} * @OA\Property(property="name", type="string", example="대시보드"), * @OA\Property(property="url", type="string", nullable=true, example="/dashboard"), * @OA\Property(property="icon", type="string", nullable=true, example="dashboard"), - * @OA\Property(property="sort_order", type="integer", example=1) + * @OA\Property(property="sort_order", type="integer", example=1), + * @OA\Property(property="is_external", type="boolean", example=false, description="외부 링크 여부"), + * @OA\Property(property="external_url", type="string", nullable=true, example="https://example.com", description="외부 링크 URL") * ) * ) * )