Files
wcs/WCS.WebApi/Controllers/WarningController.cs
hehaibing-1996 ac14b22507 1.前后端增加复位功能
2.tcpclient心跳设置
3.优化后端启动速度
4.增加后端出库日志
2024-05-28 17:48:48 +08:00

31 lines
760 B
C#

using Microsoft.AspNetCore.Mvc;
using WCS.BLL.Services.IService;
using WCS.Model;
using WCS.Model.ApiModel;
using WCS.Model.ApiModel.User;
using WCS.Model.WebSocketModel;
namespace WCS.WebApi.Controllers
{
[ApiController]
[Route("[controller]")]
public class WarningController : ControllerBase
{
public IWarningService _warningService { get; set; }
public WarningController(IWarningService warningService)
{
_warningService = warningService;
}
[Route("solveWarning")]
[HttpPost(Name = "solveWarning")]
public async Task<ResponseBase> SolveWarning(SolveWarningRequest request)
{
return await _warningService.SolveWarning(request);
}
}
}