diff --git a/projects/IoTCenter/.gitignore b/projects/IoTCenter/.gitignore index 916400a5..cd5894bd 100644 --- a/projects/IoTCenter/.gitignore +++ b/projects/IoTCenter/.gitignore @@ -1,6 +1,6 @@ *.bak *.suo -#*.db +*.db *.db-shm *.db-wal *.user diff --git a/projects/IoTCenter/configuration.db b/projects/IoTCenter/configuration.db deleted file mode 100644 index 1e456526..00000000 Binary files a/projects/IoTCenter/configuration.db and /dev/null differ diff --git a/projects/IoTCenter/iotcenter.db b/projects/IoTCenter/iotcenter.db deleted file mode 100644 index 3796ca87..00000000 Binary files a/projects/IoTCenter/iotcenter.db and /dev/null differ diff --git a/projects/IoTNode/.gitignore b/projects/IoTNode/.gitignore index 916400a5..cd5894bd 100644 --- a/projects/IoTNode/.gitignore +++ b/projects/IoTNode/.gitignore @@ -1,6 +1,6 @@ *.bak *.suo -#*.db +*.db *.db-shm *.db-wal *.user diff --git a/projects/IoTNode/Controllers/FBee/IrController.cs b/projects/IoTNode/Controllers/FBee/IrController.cs index 180cb03b..50b27fe7 100644 --- a/projects/IoTNode/Controllers/FBee/IrController.cs +++ b/projects/IoTNode/Controllers/FBee/IrController.cs @@ -3,6 +3,8 @@ using IoTNode.DeviceServices.FBee; using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; using System; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; namespace IoTNode.Controllers { @@ -28,7 +30,7 @@ namespace IoTNode.Controllers } [HttpGet, Route("/[controller]/[action]"), SwaggerOperation("学习")] - public ApiResponse Study([SwaggerParameter("设备编号")]string number, [SwaggerParameter("按键类型")]byte type, [SwaggerParameter("键值")]ushort code) + public ApiResponse Study([SwaggerParameter("设备编号")]string number, [SwaggerParameter("按键类型")]byte type, [SwaggerParameter("键值"), Required, Range(1, 10)]ushort code) { return this.AsyncAction(() => { diff --git a/projects/IoTNode/configuration.db b/projects/IoTNode/configuration.db deleted file mode 100644 index 6fcca77a..00000000 Binary files a/projects/IoTNode/configuration.db and /dev/null differ diff --git a/projects/IoTNode/iotnode.db b/projects/IoTNode/iotnode.db deleted file mode 100644 index 685521bc..00000000 Binary files a/projects/IoTNode/iotnode.db and /dev/null differ