feat:테넌트설정 API 및 다수 서비스 개선
- TenantSetting CRUD API 추가 - Calendar, Entertainment, VAT 서비스 개선 - 5130 BOM 계산 로직 수정 - quote_items에 item_type 컬럼 추가 - tenant_settings 테이블 마이그레이션 - Swagger 문서 업데이트
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\TenantSetting;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class BulkUpdateSettingsRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'group' => 'required|string|max:50',
|
||||
'settings' => 'required|array',
|
||||
'settings.*.key' => 'required|string|max:100',
|
||||
'settings.*.value' => 'required',
|
||||
'settings.*.description' => 'nullable|string|max:255',
|
||||
];
|
||||
}
|
||||
}
|
||||
20
app/Http/Requests/TenantSetting/GetSettingsRequest.php
Normal file
20
app/Http/Requests/TenantSetting/GetSettingsRequest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\TenantSetting;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class GetSettingsRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'group' => 'sometimes|string|max:50',
|
||||
];
|
||||
}
|
||||
}
|
||||
23
app/Http/Requests/TenantSetting/UpdateSettingRequest.php
Normal file
23
app/Http/Requests/TenantSetting/UpdateSettingRequest.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\TenantSetting;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class UpdateSettingRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'group' => 'required|string|max:50',
|
||||
'key' => 'required|string|max:100',
|
||||
'value' => 'required',
|
||||
'description' => 'nullable|string|max:255',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user