Former-commit-id: 0fd6cb105a8e95e1fb8af46a0739ff0e1e9e0d68
TangShanKaiPing
wanggang 6 years ago
parent fc5c98bb1f
commit 27b9954491

@ -1,6 +1,6 @@
*.bak
*.suo
#*.db
*.db
*.db-shm
*.db-wal
*.user

Binary file not shown.

@ -1,6 +1,6 @@
*.bak
*.suo
#*.db
*.db
*.db-shm
*.db-wal
*.user

@ -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(() =>
{

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save