This commit is contained in:
admin
2026-02-01 21:01:19 +09:00
parent a2d7b54cd3
commit cf17eef442
3 changed files with 44 additions and 25 deletions

View File

@@ -7,8 +7,8 @@ class VoucherExportRequest(BaseModel):
"""账票エクスポート要求"""
start_year: int = Field(..., ge=2000, le=2099)
start_month: int = Field(..., ge=1, le=12)
end_year: int = Field(default=None, ge=2000, le=2099)
end_month: int = Field(default=None, ge=1, le=12)
end_year: Optional[int] = Field(default=None)
end_month: Optional[int] = Field(default=None)
employee_ids: List[int] = Field(..., min_items=1)
voucher_type: str = Field(default="all", pattern="^(all|salary|bonus)$")
format: str = Field(default="preview", pattern="^(preview|csv|pdf)$")