Logo
Explore Help
Register Sign In
SamProject/sam-api
6
0
Fork 0
You've already forked sam-api
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
develop
sam-api/app/Http/Requests/Quote/QuoteSendKakaoRequest.php

24 lines
492 B
PHP
Raw Permalink Normal View History

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.* 성공 메시지
2025-12-04 22:03:40 +09:00
<?php
namespace App\Http\Requests\Quote;
use Illuminate\Foundation\Http\FormRequest;
class QuoteSendKakaoRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'phone' => 'nullable|string|max:20',
'name' => 'nullable|string|max:100',
'template_code' => 'nullable|string|max:50',
'view_url' => 'nullable|url|max:500',
];
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 99ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API