created prototype of tasks for device and dialog, that shows all tasks for admin per each device

This commit is contained in:
tdv
2025-10-08 18:25:23 +03:00
parent 481966fcba
commit ee210e847e
7 changed files with 376 additions and 50 deletions

View File

@@ -38,7 +38,7 @@ type CreateTaskDto struct {
Type models.DeviceTaskType `json:"type" binding:"required,oneof=start_stream stop_stream start_recording stop_recording update_config set_deep_sleep"`
// Pass raw JSON string as payload (e.g. {"sleepTimeout":5,"jitterMs":50,"recordingDurationSec":60})
// Keep it string to let device/server evolve freely.
Payload string `json:"payload" binding:"required"`
Payload string `json:"payload"`
}
// Device polls: single next task