调整swag

This commit is contained in:
2025-10-13 14:37:57 +08:00
parent bcec36f7e2
commit fa437b30aa
5 changed files with 9 additions and 15 deletions

View File

@@ -23,7 +23,7 @@ type UpdateDeviceRequest struct {
// ManualControlDeviceRequest 定义了手动控制设备时需要传入的参数
type ManualControlDeviceRequest struct {
// Action 不传表示这是一个传感器, 会触发一次采集
Action *string `json:"action" binding:"oneof=on off"`
Action *string `json:"action"`
}
// CreateAreaControllerRequest 定义了创建区域主控时需要传入的参数