feat: TenantApi.php & CategoryApi.php Swagger 점검 및 개선 (Phase 3-5, 3-6)

Phase 3-5 (TenantApi.php):
- TenantStoreRequest.php 생성 (검증 로직 분리)
- TenantUpdateRequest.php 생성 (검증 로직 분리)
- TenantController.php FormRequest 적용 및 DI 패턴 적용
- TenantService static 호출 → DI 인스턴스 호출
- lang/ko/message.php tenant 메시지 키 추가

Phase 3-6 (CategoryApi.php):
- CategoryStoreRequest.php 생성 (검증 로직 분리)
- CategoryUpdateRequest.php 생성 (검증 로직 분리)
- CategoryMoveRequest.php 생성 (카테고리 이동 검증)
- CategoryReorderRequest.php 생성 (정렬순서 일괄 변경 검증)
- CategoryController.php FormRequest 적용
- lang/ko/message.php category 메시지 키 추가
- SAM API Development Rules 준수 완료
This commit is contained in:
2025-11-07 02:47:30 +09:00
parent 97c0d8245e
commit 17a710f8ef
9 changed files with 198 additions and 29 deletions

View File

@@ -51,6 +51,14 @@
],
'category' => [
'fetched' => '카테고리를 조회했습니다.',
'created' => '카테고리가 등록되었습니다.',
'updated' => '카테고리가 수정되었습니다.',
'deleted' => '카테고리가 삭제되었습니다.',
'toggled' => '카테고리 상태가 변경되었습니다.',
'moved' => '카테고리가 이동되었습니다.',
'reordered' => '카테고리 정렬순서가 변경되었습니다.',
'tree_fetched' => '카테고리 트리를 조회했습니다.',
'fields_saved' => '카테고리 필드가 저장되었습니다.',
'template_saved' => '카테고리 템플릿이 저장되었습니다.',
'template_applied' => '카테고리 템플릿이 적용되었습니다.',
@@ -110,6 +118,15 @@
'tenant_switched' => '활성 테넌트가 전환되었습니다.',
],
// 테넌트 관리
'tenant' => [
'fetched' => '테넌트를 조회했습니다.',
'created' => '테넌트가 등록되었습니다.',
'updated' => '테넌트가 수정되었습니다.',
'deleted' => '테넌트가 삭제되었습니다.',
'restored' => '테넌트가 복구되었습니다.',
],
// 파일 관리
'file' => [
'uploaded' => '파일이 업로드되었습니다.',