提交修改

This commit is contained in:
hehaibing-1996
2024-11-12 13:33:40 +08:00
parent 6282ecc0c1
commit 7427b804f6
5 changed files with 103 additions and 1 deletions

View File

@ -44,5 +44,23 @@ namespace WCS.WebApi.Controllers
}
}
[Route("turnoffLightByArea")]
[HttpPost(Name = "turnoffLightByArea")]
public async Task<ResponseBase> TurnoffLightByArea(TurnoffLightByAreaRequest request)
{
try
{
return await _singleLightService.TurnoffLightByArea(request);
}
catch (Exception ex)
{
return new ResponseBase()
{
Code = 300,
Message = "操作失败:" + ex.Message,
};
}
}
}
}