feat: 근태관리/직원관리 API 구현
- AttendanceController, AttendanceService 추가 - EmployeeController, EmployeeService 추가 - Attendance 모델 및 마이그레이션 추가 - TenantUserProfile에 employee_status 컬럼 추가 - DepartmentService 트리 조회 기능 개선 - Swagger 문서 추가 (AttendanceApi, EmployeeApi) - API 라우트 등록
This commit is contained in:
22
app/Http/Requests/Attendance/MonthlyStatsRequest.php
Normal file
22
app/Http/Requests/Attendance/MonthlyStatsRequest.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Attendance;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class MonthlyStatsRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'year' => 'nullable|integer|min:2000|max:2100',
|
||||
'month' => 'nullable|integer|min:1|max:12',
|
||||
'user_id' => 'nullable|integer|exists:users,id',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user