style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -11,11 +11,11 @@
|
||||
return [
|
||||
|
||||
// 4xx Common
|
||||
'not_found' => 'The requested URI or data was not found.', // 404
|
||||
'tenant_id' => 'No active tenant is set.', // 400 (Service::tenantId() missing)
|
||||
'unauthenticated' => 'Authentication failed.', // 401
|
||||
'forbidden' => 'You do not have permission for this request.', // 403
|
||||
'bad_request' => 'Invalid request.', // 400
|
||||
'not_found' => 'The requested URI or data was not found.', // 404
|
||||
'tenant_id' => 'No active tenant is set.', // 400 (Service::tenantId() missing)
|
||||
'unauthenticated' => 'Authentication failed.', // 401
|
||||
'forbidden' => 'You do not have permission for this request.', // 403
|
||||
'bad_request' => 'Invalid request.', // 400
|
||||
|
||||
// Validation / Parameters
|
||||
'validation_failed' => 'Request data validation failed.', // 422
|
||||
@@ -25,12 +25,12 @@
|
||||
'not_found_resource' => ':resource could not be found.', // 404
|
||||
|
||||
// Business rules
|
||||
'duplicate' => 'Duplicate data exists.',
|
||||
'conflict' => 'The request conflicts with the current state.', // 409
|
||||
'state_invalid' => 'The current state does not allow this operation.', // 400/409
|
||||
'duplicate' => 'Duplicate data exists.',
|
||||
'conflict' => 'The request conflicts with the current state.', // 409
|
||||
'state_invalid' => 'The current state does not allow this operation.', // 400/409
|
||||
|
||||
// Server errors
|
||||
'server_error' => 'An internal server error occurred.', // 5xx
|
||||
'server_error' => 'An internal server error occurred.', // 5xx
|
||||
|
||||
// Estimate related errors
|
||||
'estimate' => [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Success / Info / General messages (non-error)
|
||||
* - For API normal response "message" field
|
||||
@@ -8,61 +9,61 @@
|
||||
return [
|
||||
|
||||
// Common (CRUD / convenience)
|
||||
'fetched' => 'Fetched successfully.',
|
||||
'created' => 'Created successfully.',
|
||||
'updated' => 'Updated successfully.',
|
||||
'deleted' => 'Deleted successfully.',
|
||||
'restored' => 'Restored successfully.',
|
||||
'toggled' => 'Status updated successfully.',
|
||||
'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.',
|
||||
'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.',
|
||||
'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.',
|
||||
'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.',
|
||||
'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',
|
||||
'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.',
|
||||
'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.',
|
||||
'template_diff' => 'BOM template differences have been computed.',
|
||||
],
|
||||
|
||||
'model_set' => [
|
||||
'cloned' => 'Model set cloned successfully.',
|
||||
'cloned' => 'Model set cloned successfully.',
|
||||
'calculated' => 'BOM calculation completed.',
|
||||
],
|
||||
|
||||
'estimate' => [
|
||||
'cloned' => 'Estimate cloned successfully.',
|
||||
'cloned' => 'Estimate cloned successfully.',
|
||||
'status_changed' => 'Estimate status updated.',
|
||||
],
|
||||
|
||||
@@ -71,25 +72,25 @@
|
||||
|
||||
// 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.',
|
||||
'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.',
|
||||
'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.',
|
||||
'deleted' => 'File has been deleted.',
|
||||
'fetched' => 'File list retrieved successfully.',
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user