feat: 로그인 응답 메뉴에 외부 링크 정보 추가 (is_external, external_url)

This commit is contained in:
2025-11-06 20:00:20 +09:00
parent e99d3916c1
commit ae527f90e8
2 changed files with 4 additions and 2 deletions

View File

@@ -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();
}

View File

@@ -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")
* )
* )
* )