ssửa lại chức năng frontend

This commit is contained in:
2026-04-28 15:58:39 +07:00
parent 81c727b7a6
commit ecd9845e14
8 changed files with 367 additions and 88 deletions
+15
View File
@@ -42,3 +42,18 @@ class ScheduleUpdate(BaseModel):
weekdays_to: str = Field(pattern=r"^\d{2}:\d{2}$")
weekend_all_day: bool
class MediaMTXCamera(BaseModel):
name: str
rtsp_url: str
class MediaMTXConfigView(BaseModel):
api_url: str
webrtc_url: str
record_enabled: bool
cameras: list[MediaMTXCamera]
class MediaMTXAddCameraRequest(BaseModel):
rtsp_url: str = Field(min_length=1, max_length=2048)