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 SolveWarning(SolveWarningRequest request)
{
return await _warningService.SolveWarning(request);
}
}
}