feat: Phase 8.3 회사 추가 API 구현
- 사업자등록번호 유효성 검사 API (바로빌 연동) - 회사 추가 신청/승인/반려 워크플로우 - 신청 승인 시 테넌트 자동 생성 및 사용자 연결 - 관리자용 신청 목록/상세 조회 - 사용자용 내 신청 목록 조회 - Swagger 문서 및 i18n 메시지 추가
This commit is contained in:
34
app/Http/Requests/V1/Company/CompanyRequestStoreRequest.php
Normal file
34
app/Http/Requests/V1/Company/CompanyRequestStoreRequest.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\V1\Company;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class CompanyRequestStoreRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'business_number' => 'required|string|min:10|max:13',
|
||||
'company_name' => 'required|string|max:200',
|
||||
'ceo_name' => 'nullable|string|max:50',
|
||||
'address' => 'nullable|string|max:300',
|
||||
'phone' => 'nullable|string|max:30',
|
||||
'email' => 'nullable|email|max:100',
|
||||
'message' => 'nullable|string|max:1000',
|
||||
];
|
||||
}
|
||||
|
||||
public function messages(): array
|
||||
{
|
||||
return [
|
||||
'business_number.required' => __('validation.required', ['attribute' => '사업자등록번호']),
|
||||
'company_name.required' => __('validation.required', ['attribute' => '회사명']),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user