Files
wcs/WCS.WebApi/Controllers/WarningController.cs
hehaibing-1996 311a695498 添加报警窗口
出库流程调试、优化
2024-05-05 16:57:20 +08:00

32 lines
832 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
{
/// <summary>
/// 权限/用户界面的接口
/// </summary>
[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);
}
}
}