## 주요 변경사항 ### BOM 시스템 통합 및 정리 - 기본 BOM 시스템 완전 제거 (미완성 3-tier 구조) - app/Http/Controllers/Api/V1/BomController.php 삭제 - app/Services/BomService.php 삭제 - app/Models/Products/Bom.php 삭제 - app/Models/Products/BomItem.php 삭제 - BOM 역할 명확화: Product BOM (운영용) + Design BOM (설계용) - Tag 모델에서 불필요한 BOM 참조 제거 ### API 그룹핑 최적화 - Products & Materials 통합: /v1/products/materials/* - Settings & Configuration 통합: /v1/settings/* - 필드 설정: /v1/settings/fields/* - 옵션 관리: /v1/settings/options/* - 공통 코드: /v1/settings/common/* - 기존 분산된 라우트 통합으로 일관성 향상 ### 번역 완성도 향상 - 영어 에러 메시지 누락 항목 추가 - Settings, Materials, File 관련 메시지 보완 - 한국어/영어 번역 파일 동기화 완료 ### 시스템 품질 개선 - API 구조 논리적 재구성으로 사용자 경험 향상 - 코드 복잡도 감소 및 유지보수성 개선 - 불필요한 컨트롤러/서비스 제거로 시스템 단순화 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
96 lines
3.3 KiB
PHP
96 lines
3.3 KiB
PHP
<?php
|
|
/**
|
|
* Success / Info / General messages (non-error)
|
|
* - For API normal response "message" field
|
|
* - Use common keys and resource-specific nested keys
|
|
* - Example: return ApiResponse::success($data, __('message.created'));
|
|
*/
|
|
return [
|
|
|
|
// Common (CRUD / convenience)
|
|
'fetched' => 'Fetched successfully.',
|
|
'created' => 'Created successfully.',
|
|
'updated' => 'Updated successfully.',
|
|
'deleted' => 'Deleted successfully.',
|
|
'restored' => 'Restored successfully.',
|
|
'toggled' => 'Status updated successfully.',
|
|
'bulk_upsert' => 'Bulk save completed successfully.',
|
|
'reordered' => 'Reorder completed successfully.',
|
|
'no_changes' => 'No changes detected.',
|
|
|
|
// Auth / Session
|
|
'login_success' => 'Login successful.',
|
|
'logout_success' => 'You have been logged out.',
|
|
'signup_success' => 'Sign-up completed successfully.',
|
|
|
|
// Tenant / Context
|
|
'tenant_switched' => 'Active tenant has been switched.',
|
|
|
|
// Resource-specific details
|
|
'product' => [
|
|
'created' => 'Product has been created.',
|
|
'updated' => 'Product has been updated.',
|
|
'deleted' => 'Product has been deleted.',
|
|
'toggled' => 'Product status has been updated.',
|
|
],
|
|
|
|
'bom' => [
|
|
'fetched' => 'BOM items have been fetched.',
|
|
'bulk_upsert' => 'BOM items have been saved.',
|
|
'reordered' => 'BOM order has been updated.',
|
|
'fetch' => 'BOM item fetch',
|
|
'create' => 'BOM item created',
|
|
'update' => 'BOM item updated',
|
|
'delete' => 'BOM item deleted',
|
|
'restore' => 'BOM item restored',
|
|
],
|
|
|
|
'category' => [
|
|
'fields_saved' => 'Category fields have been saved.',
|
|
'template_saved' => 'Category template has been saved.',
|
|
'template_applied' => 'Category template has been applied.',
|
|
],
|
|
|
|
'design' => [
|
|
'template_cloned' => 'BOM template has been cloned.',
|
|
'template_diff' => 'BOM template differences have been computed.',
|
|
],
|
|
|
|
'model_set' => [
|
|
'cloned' => 'Model set cloned successfully.',
|
|
'calculated' => 'BOM calculation completed.',
|
|
],
|
|
|
|
'estimate' => [
|
|
'cloned' => 'Estimate cloned successfully.',
|
|
'status_changed' => 'Estimate status updated.',
|
|
],
|
|
|
|
// Calculation related
|
|
'calculated' => 'Calculation completed',
|
|
|
|
// Settings & Configuration Management
|
|
'settings' => [
|
|
'fields_updated' => 'Field settings have been updated.',
|
|
'fields_bulk_saved' => 'Field settings bulk save completed.',
|
|
'options_saved' => 'Option group has been saved.',
|
|
'options_reordered' => 'Option values reordered successfully.',
|
|
'common_code_saved' => 'Common code has been saved.',
|
|
],
|
|
|
|
// Materials Management (Products & Materials integrated)
|
|
'materials' => [
|
|
'created' => 'Material has been created.',
|
|
'updated' => 'Material has been updated.',
|
|
'deleted' => 'Material has been deleted.',
|
|
'fetched' => 'Materials list retrieved successfully.',
|
|
],
|
|
|
|
// File Management
|
|
'file' => [
|
|
'uploaded' => 'File has been uploaded.',
|
|
'deleted' => 'File has been deleted.',
|
|
'fetched' => 'File list retrieved successfully.',
|
|
],
|
|
];
|