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:
@@ -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