feat: [quote] 견적 API Phase 2-3 완료 (Service + Controller Layer)
Phase 2 - Service Layer:
- QuoteService: 견적 CRUD + 상태관리 (확정/전환)
- QuoteNumberService: 견적번호 채번 (KD-{PREFIX}-YYMMDD-SEQ)
- FormulaEvaluatorService: 수식 평가 엔진 (SUM, IF, ROUND 등)
- QuoteCalculationService: 자동산출 (스크린/철재 제품)
- QuoteDocumentService: PDF 생성 및 이메일/카카오 발송
Phase 3 - Controller Layer:
- QuoteController: 16개 엔드포인트
- FormRequest 7개: Index, Store, Update, BulkDelete, Calculate, SendEmail, SendKakao
- QuoteApi.php: Swagger 문서 (12개 스키마, 16개 엔드포인트)
- routes/api.php: 16개 라우트 등록
i18n 키 추가:
- error.php: quote_not_found, formula_* 등
- message.php: quote.* 성공 메시지
This commit is contained in:
@@ -125,4 +125,21 @@
|
||||
'entity_protected_by_locked_relationship' => '잠금된 연결로 보호된 항목은 삭제할 수 없습니다.',
|
||||
'page_has_locked_children' => '잠금된 자식 연결이 있어 페이지를 삭제할 수 없습니다.',
|
||||
'section_has_locked_children' => '잠금된 자식 연결이 있어 섹션을 삭제할 수 없습니다.',
|
||||
|
||||
// 견적 관련 (Quote)
|
||||
'quote_not_found' => '견적 정보를 찾을 수 없습니다.',
|
||||
'quote_not_editable' => '현재 상태에서는 견적을 수정할 수 없습니다.',
|
||||
'quote_not_deletable' => '현재 상태에서는 견적을 삭제할 수 없습니다.',
|
||||
'quote_not_finalizable' => '현재 상태에서는 견적을 확정할 수 없습니다.',
|
||||
'quote_not_finalized' => '확정되지 않은 견적입니다.',
|
||||
'quote_already_converted' => '이미 수주 전환된 견적입니다.',
|
||||
'quote_not_convertible' => '현재 상태에서는 수주 전환할 수 없습니다.',
|
||||
'quote_email_not_found' => '수신자 이메일 정보가 없습니다.',
|
||||
'quote_phone_not_found' => '수신자 연락처 정보가 없습니다.',
|
||||
|
||||
// 수식 평가 관련 (Formula)
|
||||
'formula_empty' => '수식이 비어있습니다.',
|
||||
'formula_parentheses_mismatch' => '괄호가 올바르게 닫히지 않았습니다.',
|
||||
'formula_unsupported_function' => '지원하지 않는 함수입니다: :function',
|
||||
'formula_calculation_error' => '계산 오류: :expression',
|
||||
];
|
||||
|
||||
@@ -180,4 +180,20 @@
|
||||
'folder_updated' => '폴더가 수정되었습니다.',
|
||||
'folder_deleted' => '폴더가 비활성화되었습니다.',
|
||||
'folders_reordered' => '폴더 순서가 변경되었습니다.',
|
||||
|
||||
// 견적 관리
|
||||
'quote' => [
|
||||
'fetched' => '견적을 조회했습니다.',
|
||||
'created' => '견적이 등록되었습니다.',
|
||||
'updated' => '견적이 수정되었습니다.',
|
||||
'deleted' => '견적이 삭제되었습니다.',
|
||||
'bulk_deleted' => '견적이 일괄 삭제되었습니다.',
|
||||
'finalized' => '견적이 확정되었습니다.',
|
||||
'finalize_cancelled' => '견적 확정이 취소되었습니다.',
|
||||
'converted' => '견적이 수주로 전환되었습니다.',
|
||||
'calculated' => '견적 자동산출이 완료되었습니다.',
|
||||
'pdf_generated' => '견적서 PDF가 생성되었습니다.',
|
||||
],
|
||||
'quote_email_sent' => '견적서가 이메일로 발송되었습니다.',
|
||||
'quote_kakao_sent' => '견적서가 카카오톡으로 발송되었습니다.',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user