style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
* schema="CategoryField",
|
||||
* type="object",
|
||||
* required={"id","tenant_id","category_id","field_key","field_name","field_type"},
|
||||
*
|
||||
* @OA\Property(property="id", type="integer", example=11),
|
||||
* @OA\Property(property="tenant_id", type="integer", example=1),
|
||||
* @OA\Property(property="category_id", type="integer", example=7),
|
||||
@@ -43,12 +44,15 @@
|
||||
* @OA\Schema(
|
||||
* schema="CategoryFieldPagination",
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(property="current_page", type="integer", example=1),
|
||||
* @OA\Property(
|
||||
* property="data",
|
||||
* type="array",
|
||||
*
|
||||
* @OA\Items(ref="#/components/schemas/CategoryField")
|
||||
* ),
|
||||
*
|
||||
* @OA\Property(property="per_page", type="integer", example=20),
|
||||
* @OA\Property(property="total", type="integer", example=3)
|
||||
* )
|
||||
@@ -57,6 +61,7 @@
|
||||
* schema="CategoryFieldCreateRequest",
|
||||
* type="object",
|
||||
* required={"field_key","field_name","field_type"},
|
||||
*
|
||||
* @OA\Property(property="field_key", type="string", example="height"),
|
||||
* @OA\Property(property="field_name", type="string", example="높이(mm)"),
|
||||
* @OA\Property(property="field_type", type="string", example="number"),
|
||||
@@ -75,6 +80,7 @@
|
||||
* @OA\Schema(
|
||||
* schema="CategoryFieldUpdateRequest",
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(property="field_key", type="string", example="height"),
|
||||
* @OA\Property(property="field_name", type="string", example="높이(mm)"),
|
||||
* @OA\Property(property="field_type", type="string", example="number"),
|
||||
@@ -93,9 +99,11 @@
|
||||
* @OA\Schema(
|
||||
* schema="CategoryFieldReorderRequest",
|
||||
* type="array",
|
||||
*
|
||||
* @OA\Items(
|
||||
* type="object",
|
||||
* required={"id","sort_order"},
|
||||
*
|
||||
* @OA\Property(property="id", type="integer", example=11),
|
||||
* @OA\Property(property="sort_order", type="integer", example=1)
|
||||
* )
|
||||
@@ -105,11 +113,14 @@
|
||||
* schema="CategoryFieldBulkUpsertRequest",
|
||||
* type="object",
|
||||
* required={"items"},
|
||||
*
|
||||
* @OA\Property(
|
||||
* property="items",
|
||||
* type="array",
|
||||
*
|
||||
* @OA\Items(
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(property="id", type="integer", nullable=true, example=null),
|
||||
* @OA\Property(property="field_key", type="string", example="thickness"),
|
||||
* @OA\Property(property="field_name", type="string", example="두께(mm)"),
|
||||
@@ -127,6 +138,7 @@
|
||||
* schema="CategoryTemplate",
|
||||
* type="object",
|
||||
* required={"id","tenant_id","category_id","version_no","template_json","applied_at"},
|
||||
*
|
||||
* @OA\Property(property="id", type="integer", example=1001),
|
||||
* @OA\Property(property="tenant_id", type="integer", example=1),
|
||||
* @OA\Property(property="category_id", type="integer", example=7),
|
||||
@@ -147,6 +159,7 @@
|
||||
* schema="CategoryTemplateCreateRequest",
|
||||
* type="object",
|
||||
* required={"version_no","template_json","applied_at"},
|
||||
*
|
||||
* @OA\Property(property="version_no", type="integer", example=4),
|
||||
* @OA\Property(
|
||||
* property="template_json",
|
||||
@@ -165,6 +178,7 @@
|
||||
* @OA\Schema(
|
||||
* schema="CategoryTemplateUpdateRequest",
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(
|
||||
* property="template_json",
|
||||
* type="object",
|
||||
@@ -178,6 +192,7 @@
|
||||
* schema="CategoryLog",
|
||||
* type="object",
|
||||
* required={"id","tenant_id","category_id","action","changed_at"},
|
||||
*
|
||||
* @OA\Property(property="id", type="integer", example=501),
|
||||
* @OA\Property(property="tenant_id", type="integer", example=1),
|
||||
* @OA\Property(property="category_id", type="integer", example=7),
|
||||
@@ -203,19 +218,24 @@ class CategoryExtras
|
||||
* tags={"Category-Fields"},
|
||||
* summary="카테고리별 필드 목록",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer"), description="카테고리 ID"),
|
||||
* @OA\Parameter(ref="#/components/parameters/Page"),
|
||||
* @OA\Parameter(ref="#/components/parameters/Size"),
|
||||
* @OA\Parameter(name="sort", in="query", @OA\Schema(type="string", example="sort_order")),
|
||||
* @OA\Parameter(name="order", in="query", @OA\Schema(type="string", enum={"asc","desc"}, example="asc")),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="목록 조회 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={
|
||||
*
|
||||
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
|
||||
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/CategoryFieldPagination"))
|
||||
* })
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(response=401, description="인증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse"))
|
||||
* )
|
||||
*/
|
||||
@@ -227,16 +247,22 @@ public function fieldsIndex() {}
|
||||
* tags={"Category-Fields"},
|
||||
* summary="카테고리 필드 생성",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/CategoryFieldCreateRequest")),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="생성 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={
|
||||
*
|
||||
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
|
||||
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/CategoryField"))
|
||||
* })
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(response=400, description="검증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse"))
|
||||
* )
|
||||
*/
|
||||
@@ -248,15 +274,20 @@ public function fieldsStore() {}
|
||||
* tags={"Category-Fields"},
|
||||
* summary="카테고리 필드 단건 조회",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="field", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="조회 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={
|
||||
*
|
||||
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
|
||||
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/CategoryField"))
|
||||
* })
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(response=404, description="없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse"))
|
||||
* )
|
||||
*/
|
||||
@@ -268,12 +299,17 @@ public function fieldsShow() {}
|
||||
* tags={"Category-Fields"},
|
||||
* summary="카테고리 필드 수정",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="field", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/CategoryFieldUpdateRequest")),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="수정 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={
|
||||
*
|
||||
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
|
||||
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/CategoryField"))
|
||||
* })
|
||||
@@ -288,10 +324,13 @@ public function fieldsUpdate() {}
|
||||
* tags={"Category-Fields"},
|
||||
* summary="카테고리 필드 삭제",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="field", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="삭제 성공",
|
||||
*
|
||||
* @OA\JsonContent(ref="#/components/schemas/ApiResponse")
|
||||
* )
|
||||
* )
|
||||
@@ -304,8 +343,11 @@ public function fieldsDestroy() {}
|
||||
* tags={"Category-Fields"},
|
||||
* summary="카테고리 필드 정렬 저장",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/CategoryFieldReorderRequest")),
|
||||
*
|
||||
* @OA\Response(response=200, description="저장 성공", @OA\JsonContent(ref="#/components/schemas/ApiResponse"))
|
||||
* )
|
||||
*/
|
||||
@@ -317,14 +359,20 @@ public function fieldsReorder() {}
|
||||
* tags={"Category-Fields"},
|
||||
* summary="카테고리 필드 일괄 업서트",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/CategoryFieldBulkUpsertRequest")),
|
||||
*
|
||||
* @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="created", type="integer", example=2),
|
||||
* @OA\Property(property="updated", type="integer", example=3)
|
||||
@@ -348,23 +396,30 @@ public function fieldsBulkUpsert() {}
|
||||
* tags={"Category-Templates"},
|
||||
* summary="카테고리 템플릿 버전 목록",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer")),
|
||||
* @OA\Parameter(ref="#/components/parameters/Page"),
|
||||
* @OA\Parameter(ref="#/components/parameters/Size"),
|
||||
*
|
||||
* @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="data",
|
||||
* type="array",
|
||||
*
|
||||
* @OA\Items(ref="#/components/schemas/CategoryTemplate")
|
||||
* ),
|
||||
*
|
||||
* @OA\Property(property="total", type="integer", example=3)
|
||||
* )
|
||||
* )
|
||||
@@ -380,16 +435,22 @@ public function templatesIndex() {}
|
||||
* tags={"Category-Templates"},
|
||||
* summary="카테고리 템플릿 생성(새 버전)",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/CategoryTemplateCreateRequest")),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="생성 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={
|
||||
*
|
||||
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
|
||||
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/CategoryTemplate"))
|
||||
* })
|
||||
* ),
|
||||
*
|
||||
* @OA\Response(response=409, description="버전 중복", @OA\JsonContent(ref="#/components/schemas/ErrorResponse"))
|
||||
* )
|
||||
*/
|
||||
@@ -401,11 +462,15 @@ public function templatesStore() {}
|
||||
* tags={"Category-Templates"},
|
||||
* summary="카테고리 템플릿 단건 조회",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="tpl", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="조회 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={
|
||||
*
|
||||
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
|
||||
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/CategoryTemplate"))
|
||||
* })
|
||||
@@ -420,12 +485,17 @@ public function templatesShow() {}
|
||||
* tags={"Category-Templates"},
|
||||
* summary="카테고리 템플릿 수정",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="tpl", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\RequestBody(required=true, @OA\JsonContent(ref="#/components/schemas/CategoryTemplateUpdateRequest")),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="수정 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={
|
||||
*
|
||||
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
|
||||
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/CategoryTemplate"))
|
||||
* })
|
||||
@@ -440,7 +510,9 @@ public function templatesUpdate() {}
|
||||
* tags={"Category-Templates"},
|
||||
* summary="카테고리 템플릿 삭제",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="tpl", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\Response(response=200, description="삭제 성공", @OA\JsonContent(ref="#/components/schemas/ApiResponse"))
|
||||
* )
|
||||
*/
|
||||
@@ -452,8 +524,10 @@ public function templatesDestroy() {}
|
||||
* tags={"Category-Templates"},
|
||||
* summary="카테고리 템플릿 적용(활성화)",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer")),
|
||||
* @OA\Parameter(name="tpl", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\Response(response=200, description="적용 성공", @OA\JsonContent(ref="#/components/schemas/ApiResponse"))
|
||||
* )
|
||||
*/
|
||||
@@ -465,11 +539,14 @@ public function templatesApply() {}
|
||||
* tags={"Category-Templates"},
|
||||
* summary="카테고리 템플릿 미리보기",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer")),
|
||||
* @OA\Parameter(name="tpl", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="미리보기 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={@OA\Schema(ref="#/components/schemas/ApiResponse")})
|
||||
* )
|
||||
* )
|
||||
@@ -482,15 +559,20 @@ public function templatesPreview() {}
|
||||
* tags={"Category-Templates"},
|
||||
* summary="두 버전 비교(diff)",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer")),
|
||||
* @OA\Parameter(name="a", in="query", required=true, @OA\Schema(type="integer"), description="비교 기준 버전"),
|
||||
* @OA\Parameter(name="b", in="query", required=true, @OA\Schema(type="integer"), description="비교 대상 버전"),
|
||||
*
|
||||
* @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="added", type="array", @OA\Items(type="string")),
|
||||
* @OA\Property(property="removed", type="array", @OA\Items(type="string"))
|
||||
@@ -514,26 +596,33 @@ public function templatesDiff() {}
|
||||
* tags={"Category-Logs"},
|
||||
* summary="카테고리 변경 이력 목록",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer")),
|
||||
* @OA\Parameter(name="action", in="query", @OA\Schema(type="string", enum={"insert","update","delete"})),
|
||||
* @OA\Parameter(name="from", in="query", @OA\Schema(type="string", format="date")),
|
||||
* @OA\Parameter(name="to", in="query", @OA\Schema(type="string", format="date")),
|
||||
* @OA\Parameter(ref="#/components/parameters/Page"),
|
||||
* @OA\Parameter(ref="#/components/parameters/Size"),
|
||||
*
|
||||
* @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="data",
|
||||
* type="array",
|
||||
*
|
||||
* @OA\Items(ref="#/components/schemas/CategoryLog")
|
||||
* ),
|
||||
*
|
||||
* @OA\Property(property="total", type="integer", example=12)
|
||||
* )
|
||||
* )
|
||||
@@ -549,11 +638,15 @@ public function logsIndex() {}
|
||||
* tags={"Category-Logs"},
|
||||
* summary="카테고리 변경 이력 단건 조회",
|
||||
* security={{"ApiKeyAuth": {}},{"BearerAuth": {}}},
|
||||
*
|
||||
* @OA\Parameter(name="log", in="path", required=true, @OA\Schema(type="integer")),
|
||||
*
|
||||
* @OA\Response(
|
||||
* response=200,
|
||||
* description="조회 성공",
|
||||
*
|
||||
* @OA\JsonContent(allOf={
|
||||
*
|
||||
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
|
||||
* @OA\Schema(@OA\Property(property="data", ref="#/components/schemas/CategoryLog"))
|
||||
* })
|
||||
|
||||
Reference in New Issue
Block a user