style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
* type="object",
|
||||
* description="메뉴 상세",
|
||||
* required={"id","name"},
|
||||
*
|
||||
* @OA\Property(property="id", type="integer", example=12),
|
||||
* @OA\Property(property="tenant_id", type="integer", nullable=true, example=1, description="null=공용"),
|
||||
* @OA\Property(property="parent_id", type="integer", nullable=true, example=null),
|
||||
@@ -34,6 +35,7 @@
|
||||
* type="object",
|
||||
* description="메뉴 요약",
|
||||
* required={"id","name"},
|
||||
*
|
||||
* @OA\Property(property="id", type="integer", example=12),
|
||||
* @OA\Property(property="parent_id", type="integer", nullable=true, example=null),
|
||||
* @OA\Property(property="name", type="string", example="메뉴 관리"),
|
||||
@@ -50,6 +52,7 @@
|
||||
* @OA\Schema(
|
||||
* schema="MenuList",
|
||||
* type="array",
|
||||
*
|
||||
* @OA\Items(ref="#/components/schemas/MenuBrief")
|
||||
* )
|
||||
*
|
||||
@@ -57,6 +60,7 @@
|
||||
* schema="MenuCreateRequest",
|
||||
* type="object",
|
||||
* required={"name"},
|
||||
*
|
||||
* @OA\Property(property="parent_id", type="integer", nullable=true, example=null, description="상위 메뉴 ID"),
|
||||
* @OA\Property(property="name", type="string", example="새 메뉴", description="메뉴명"),
|
||||
* @OA\Property(property="slug", type="string", nullable=true, example="menu.new", description="권한 키로도 활용"),
|
||||
@@ -72,6 +76,7 @@
|
||||
* @OA\Schema(
|
||||
* schema="MenuUpdateRequest",
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(property="parent_id", type="integer", nullable=true, example=null),
|
||||
* @OA\Property(property="name", type="string", example="메뉴명 변경"),
|
||||
* @OA\Property(property="slug", type="string", nullable=true, example="menu.changed"),
|
||||
@@ -93,12 +98,16 @@ class MenuApi
|
||||
* description="테넌트 범위 내(또는 공용) 메뉴 목록을 반환합니다. parent_id/is_active/hidden 필터 지원.",
|
||||
* tags={"Menu"},
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="parent_id", in="query", required=false, @OA\Schema(type="integer", example=0)),
|
||||
* @OA\Parameter(name="is_active", in="query", required=false, @OA\Schema(type="integer", example=1)),
|
||||
* @OA\Parameter(name="hidden", in="query", required=false, @OA\Schema(type="integer", example=0)),
|
||||
*
|
||||
* @OA\Response(response=200, description="목록 조회 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={@OA\Schema(ref="#/components/schemas/ApiResponse"), @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/MenuList"))})
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(response=401, description="인증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=403, description="권한 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=500, description="서버 에러", @OA\JsonContent(ref="#/components/schemas/ErrorResponse"))
|
||||
@@ -113,10 +122,14 @@ public function index() {}
|
||||
* description="ID로 메뉴 상세 정보를 조회합니다.",
|
||||
* tags={"Menu"},
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer", example=12)),
|
||||
*
|
||||
* @OA\Response(response=200, description="단건 조회 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={@OA\Schema(ref="#/components/schemas/ApiResponse"), @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/Menu"))})
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(response=404, description="데이터 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=401, description="인증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=403, description="권한 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
@@ -132,13 +145,19 @@ public function show() {}
|
||||
* description="새로운 메뉴를 등록합니다.",
|
||||
* tags={"Menu"},
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/MenuCreateRequest")),
|
||||
*
|
||||
* @OA\Response(response=200, description="등록 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={@OA\Schema(ref="#/components/schemas/ApiResponse"), @OA\Schema(@OA\Property(property="data", type="object", @OA\Property(property="id", type="integer", example=12)))})
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(response=400, description="파라미터 오류", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=401, description="인증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
*
|
||||
* @OA\ResponsE(response=403, description="권한 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
*
|
||||
* @OA\Response(response=500, description="서버 에러", @OA\JsonContent(ref="#/components/schemas/ErrorResponse"))
|
||||
* )
|
||||
*/
|
||||
@@ -151,11 +170,16 @@ public function store() {}
|
||||
* description="기존 메뉴 정보를 수정합니다(부분 수정).",
|
||||
* tags={"Menu"},
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer", example=12)),
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/MenuUpdateRequest")),
|
||||
*
|
||||
* @OA\Response(response=200, description="수정 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={@OA\Schema(ref="#/components/schemas/ApiResponse"), @OA\Schema(@OA\Property(property="data", type="object", @OA\Property(property="id", type="integer", example=12)))})
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(response=400, description="파라미터 오류", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=401, description="인증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=403, description="권한 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
@@ -172,10 +196,14 @@ public function update() {}
|
||||
* description="지정한 메뉴를 소프트 삭제합니다.",
|
||||
* tags={"Menu"},
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer", example=12)),
|
||||
*
|
||||
* @OA\Response(response=200, description="삭제 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={@OA\Schema(ref="#/components/schemas/ApiResponse"), @OA\Schema(@OA\Property(property="data", type="object", @OA\Property(property="id", type="integer", example=12), @OA\Property(property="deleted", type="boolean", example=true)))})
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(response=401, description="인증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=403, description="권한 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=404, description="데이터 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
@@ -191,13 +219,17 @@ public function destroy() {}
|
||||
* description="여러 메뉴의 sort_order를 일괄 변경합니다.",
|
||||
* tags={"Menu"},
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(
|
||||
* type="array",
|
||||
*
|
||||
* @OA\Items(type="object",
|
||||
*
|
||||
* @OA\Property(property="id", type="integer", example=12),
|
||||
* @OA\Property(property="sort_order", type="integer", example=1)
|
||||
* )
|
||||
* )),
|
||||
*
|
||||
* @OA\Response(response=200, description="정렬 변경 성공", @OA\JsonContent(ref="#/components/schemas/ApiResponse")),
|
||||
* @OA\Response(response=400, description="파라미터 오류", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=401, description="인증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
@@ -214,12 +246,16 @@ public function reorder() {}
|
||||
* description="is_active / hidden / is_external 중 하나 이상을 토글합니다.",
|
||||
* tags={"Menu"},
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer", example=12)),
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(type="object",
|
||||
*
|
||||
* @OA\Property(property="is_active", type="boolean", nullable=true, example=true),
|
||||
* @OA\Property(property="hidden", type="boolean", nullable=true, example=false),
|
||||
* @OA\Property(property="is_external", type="boolean", nullable=true, example=false)
|
||||
* )),
|
||||
*
|
||||
* @OA\Response(response=200, description="토글 성공", @OA\JsonContent(ref="#/components/schemas/ApiResponse")),
|
||||
* @OA\Response(response=400, description="파라미터 오류", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=401, description="인증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
|
||||
Reference in New Issue
Block a user