style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -17,10 +17,13 @@
|
||||
* oneOf={
|
||||
* @OA\Schema(
|
||||
* required={"role_names"},
|
||||
*
|
||||
* @OA\Property(property="role_names", type="array", @OA\Items(type="string"), example={"menu-manager","readonly"})
|
||||
* ),
|
||||
*
|
||||
* @OA\Schema(
|
||||
* required={"role_ids"},
|
||||
*
|
||||
* @OA\Property(property="role_ids", type="array", @OA\Items(type="integer"), example={1,2})
|
||||
* )
|
||||
* }
|
||||
@@ -33,10 +36,13 @@
|
||||
* oneOf={
|
||||
* @OA\Schema(
|
||||
* required={"role_names"},
|
||||
*
|
||||
* @OA\Property(property="role_names", type="array", @OA\Items(type="string"), example={"readonly"})
|
||||
* ),
|
||||
*
|
||||
* @OA\Schema(
|
||||
* required={"role_ids"},
|
||||
*
|
||||
* @OA\Property(property="role_ids", type="array", @OA\Items(type="integer"), example={2})
|
||||
* )
|
||||
* }
|
||||
@@ -49,10 +55,13 @@
|
||||
* oneOf={
|
||||
* @OA\Schema(
|
||||
* required={"role_names"},
|
||||
*
|
||||
* @OA\Property(property="role_names", type="array", @OA\Items(type="string"), example={"menu-manager"})
|
||||
* ),
|
||||
*
|
||||
* @OA\Schema(
|
||||
* required={"role_ids"},
|
||||
*
|
||||
* @OA\Property(property="role_ids", type="array", @OA\Items(type="integer"), example={1})
|
||||
* )
|
||||
* }
|
||||
@@ -67,23 +76,30 @@ class UserRoleApi
|
||||
* description="해당 사용자에게 현재 부여된 역할 목록을 반환합니다.",
|
||||
* tags={"UserRole"},
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer"), example=1),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="조회 성공",
|
||||
*
|
||||
* @OA\JsonContent(
|
||||
* allOf={
|
||||
*
|
||||
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
|
||||
* @OA\Schema(
|
||||
*
|
||||
* @OA\Property(
|
||||
* property="data",
|
||||
* type="array",
|
||||
*
|
||||
* @OA\Items(ref="#/components/schemas/RoleBrief")
|
||||
* )
|
||||
* )
|
||||
* }
|
||||
* )
|
||||
* ),
|
||||
*
|
||||
* @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")),
|
||||
@@ -99,8 +115,11 @@ public function index() {}
|
||||
* description="role_names 또는 role_ids로 여러 역할을 부여합니다.",
|
||||
* tags={"UserRole"},
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer"), example=1),
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/UserRoleGrantRequest")),
|
||||
*
|
||||
* @OA\Response(response=200, description="부여 성공", @OA\JsonContent(ref="#/components/schemas/ApiResponse")),
|
||||
* @OA\Response(response=404, description="사용자/역할 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=422, description="검증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
@@ -118,8 +137,11 @@ public function grant() {}
|
||||
* description="role_names 또는 role_ids로 여러 역할을 회수합니다.",
|
||||
* tags={"UserRole"},
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer"), example=1),
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/UserRoleRevokeRequest")),
|
||||
*
|
||||
* @OA\Response(response=200, description="회수 성공", @OA\JsonContent(ref="#/components/schemas/ApiResponse")),
|
||||
* @OA\Response(response=404, description="사용자/역할 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=422, description="검증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
@@ -137,8 +159,11 @@ public function revoke() {}
|
||||
* description="전달된 목록으로 사용자의 역할을 완전히 교체합니다.",
|
||||
* tags={"UserRole"},
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer"), example=1),
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/UserRoleSyncRequest")),
|
||||
*
|
||||
* @OA\Response(response=200, description="동기화 성공", @OA\JsonContent(ref="#/components/schemas/ApiResponse")),
|
||||
* @OA\Response(response=404, description="사용자/역할 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
* @OA\Response(response=422, description="검증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")),
|
||||
|
||||
Reference in New Issue
Block a user