feat: 로그인 응답 메뉴에 외부 링크 정보 추가 (is_external, external_url)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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")
|
||||
* )
|
||||
* )
|
||||
* )
|
||||
|
||||
Reference in New Issue
Block a user