style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -21,18 +21,23 @@ class CommonController
|
||||
* description="테넌트의 활성화된 공통 코드 목록을 조회합니다.",
|
||||
* tags={"Settings - Common Codes"},
|
||||
* security={{"ApiKeyAuth": {}}},
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="공통 코드 조회 성공",
|
||||
*
|
||||
* @OA\JsonContent(
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(property="success", type="boolean", example=true),
|
||||
* @OA\Property(property="message", type="string", example="공통코드"),
|
||||
* @OA\Property(
|
||||
* property="data",
|
||||
* type="array",
|
||||
*
|
||||
* @OA\Items(
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(property="code_group", type="string", example="product_type"),
|
||||
* @OA\Property(property="code", type="string", example="PRODUCT"),
|
||||
* @OA\Property(property="name", type="string", example="제품"),
|
||||
@@ -61,6 +66,7 @@ public static function getComeCode()
|
||||
* description="전체 공통 코드 목록을 조회합니다.",
|
||||
* tags={"Settings - Common Codes"},
|
||||
* security={{"ApiKeyAuth": {}, "BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="공통 코드 목록 조회 성공"
|
||||
@@ -69,7 +75,7 @@ public static function getComeCode()
|
||||
*/
|
||||
public function list(Request $request)
|
||||
{
|
||||
return ApiResponse::handle(function () use ($request) {
|
||||
return ApiResponse::handle(function () {
|
||||
// Service implementation needed
|
||||
return [];
|
||||
}, __('message.fetched'));
|
||||
@@ -82,13 +88,16 @@ public function list(Request $request)
|
||||
* description="특정 그룹의 공통 코드 목록을 조회합니다.",
|
||||
* tags={"Settings - Common Codes"},
|
||||
* security={{"ApiKeyAuth": {}, "BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(
|
||||
* name="group",
|
||||
* in="path",
|
||||
* required=true,
|
||||
* description="코드 그룹",
|
||||
*
|
||||
* @OA\Schema(type="string", example="product_type")
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="그룹 코드 조회 성공"
|
||||
@@ -97,7 +106,7 @@ public function list(Request $request)
|
||||
*/
|
||||
public function index(Request $request, string $group)
|
||||
{
|
||||
return ApiResponse::handle(function () use ($group) {
|
||||
return ApiResponse::handle(function () {
|
||||
// Service implementation needed
|
||||
return [];
|
||||
}, __('message.fetched'));
|
||||
@@ -110,16 +119,20 @@ public function index(Request $request, string $group)
|
||||
* description="새로운 공통 코드를 생성합니다.",
|
||||
* tags={"Settings - Common Codes"},
|
||||
* security={{"ApiKeyAuth": {}, "BearerAuth": {}}},
|
||||
*
|
||||
* @OA\RequestBody(
|
||||
* required=true,
|
||||
*
|
||||
* @OA\JsonContent(
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(property="code_group", type="string", example="product_type"),
|
||||
* @OA\Property(property="code", type="string", example="SERVICE"),
|
||||
* @OA\Property(property="name", type="string", example="서비스"),
|
||||
* @OA\Property(property="description", type="string", example="서비스 상품")
|
||||
* )
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=201,
|
||||
* description="공통 코드 생성 성공"
|
||||
@@ -127,22 +140,26 @@ public function index(Request $request, string $group)
|
||||
* @OA\Response(
|
||||
* response=409,
|
||||
* description="중복된 공통 코드",
|
||||
*
|
||||
* @OA\JsonContent(
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(property="success", type="boolean", example=false),
|
||||
* @OA\Property(property="message", type="string", example="중복된 공통 코드가 존재합니다.")
|
||||
* )
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=422,
|
||||
* description="유효성 검사 실패",
|
||||
*
|
||||
* @OA\JsonContent(ref="#/components/schemas/ErrorResponse")
|
||||
* )
|
||||
* )
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
return ApiResponse::handle(function () use ($request) {
|
||||
return ApiResponse::handle(function () {
|
||||
// Service implementation needed
|
||||
return [];
|
||||
}, __('message.settings.common_code_saved'));
|
||||
@@ -155,21 +172,27 @@ public function store(Request $request)
|
||||
* description="기존 공통 코드를 수정합니다.",
|
||||
* tags={"Settings - Common Codes"},
|
||||
* security={{"ApiKeyAuth": {}, "BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(
|
||||
* name="id",
|
||||
* in="path",
|
||||
* required=true,
|
||||
* description="공통 코드 ID",
|
||||
*
|
||||
* @OA\Schema(type="integer", example=1)
|
||||
* ),
|
||||
*
|
||||
* @OA\RequestBody(
|
||||
* required=true,
|
||||
*
|
||||
* @OA\JsonContent(
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(property="name", type="string", example="수정된 이름"),
|
||||
* @OA\Property(property="description", type="string", example="수정된 설명")
|
||||
* )
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="공통 코드 수정 성공"
|
||||
@@ -177,22 +200,26 @@ public function store(Request $request)
|
||||
* @OA\Response(
|
||||
* response=404,
|
||||
* description="공통 코드를 찾을 수 없음",
|
||||
*
|
||||
* @OA\JsonContent(
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(property="success", type="boolean", example=false),
|
||||
* @OA\Property(property="message", type="string", example="해당 공통 코드를 찾을 수 없습니다.")
|
||||
* )
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=422,
|
||||
* description="유효성 검사 실패",
|
||||
*
|
||||
* @OA\JsonContent(ref="#/components/schemas/ErrorResponse")
|
||||
* )
|
||||
* )
|
||||
*/
|
||||
public function update(Request $request, int $id)
|
||||
{
|
||||
return ApiResponse::handle(function () use ($request, $id) {
|
||||
return ApiResponse::handle(function () {
|
||||
// Service implementation needed
|
||||
return [];
|
||||
}, __('message.updated'));
|
||||
@@ -205,13 +232,16 @@ public function update(Request $request, int $id)
|
||||
* description="공통 코드를 삭제합니다.",
|
||||
* tags={"Settings - Common Codes"},
|
||||
* security={{"ApiKeyAuth": {}, "BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(
|
||||
* name="id",
|
||||
* in="path",
|
||||
* required=true,
|
||||
* description="공통 코드 ID",
|
||||
*
|
||||
* @OA\Schema(type="integer", example=1)
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="공통 코드 삭제 성공"
|
||||
@@ -219,8 +249,10 @@ public function update(Request $request, int $id)
|
||||
* @OA\Response(
|
||||
* response=404,
|
||||
* description="공통 코드를 찾을 수 없음",
|
||||
*
|
||||
* @OA\JsonContent(
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(property="success", type="boolean", example=false),
|
||||
* @OA\Property(property="message", type="string", example="해당 공통 코드를 찾을 수 없습니다.")
|
||||
* )
|
||||
@@ -229,7 +261,7 @@ public function update(Request $request, int $id)
|
||||
*/
|
||||
public function destroy(Request $request, int $id)
|
||||
{
|
||||
return ApiResponse::handle(function () use ($id) {
|
||||
return ApiResponse::handle(function () {
|
||||
// Service implementation needed
|
||||
return [];
|
||||
}, __('message.deleted'));
|
||||
|
||||
Reference in New Issue
Block a user