fix 调整时段码结构
This commit is contained in:
@@ -19,17 +19,14 @@ public class DevicesController : ControllerBase
|
||||
private readonly IDeviceService _deviceService;
|
||||
private readonly IDeviceTemplateService _deviceTemplateService;
|
||||
private readonly IDeviceConnectService _deviceConnectService;
|
||||
private readonly IConfiguration _configuration;
|
||||
|
||||
public DevicesController(IDeviceService deviceService,
|
||||
IDeviceTemplateService deviceTemplateService,
|
||||
IDeviceConnectService deviceConnectService,
|
||||
IConfiguration configuration)
|
||||
IDeviceConnectService deviceConnectService)
|
||||
{
|
||||
_deviceService = deviceService;
|
||||
_deviceTemplateService = deviceTemplateService;
|
||||
_deviceConnectService = deviceConnectService;
|
||||
_configuration = configuration;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -106,20 +103,6 @@ public class DevicesController : ControllerBase
|
||||
await _deviceService.SaveAsync(request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取激活码
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("resigter-code")]
|
||||
public object GetRegisterCode()
|
||||
{
|
||||
return new
|
||||
{
|
||||
AppId = _configuration.GetSection("RegisterAppId").Value,
|
||||
Key = _configuration.GetSection("RegisterCode").Value
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取尚未设置营业点的设备
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user