using Infrastructure; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using OpenAuth.App.ServiceApp.DroneSsnydManage; using OpenAuth.App.ServiceApp.DroneSsnydManage.Export; namespace OpenAuth.WebApi.Controllers.ServiceControllers { /// /// 批后监管--s数据统计 /// [Route("api/[controller]/[action]")] [ApiController] public class DroneSsnyStatisticsController : ControllerBase { DroneSsnyStatisticsApp _app; public DroneSsnyStatisticsController(DroneSsnyStatisticsApp app) { _app = app; } #region 统计 /// /// 统计分析 /// /// [HttpGet] [AllowAnonymous] public Response> CaseOffenceForSsny(DateTime startTime, DateTime endTime, string tubanlaiyuan) { Response> response = new Response>(); try { response = _app.CaseOffence(startTime, endTime, tubanlaiyuan); } catch (Exception ex) { response.Code = 500; response.Message = ex.InnerException?.Message ?? ex.Message; } return response; } #endregion } }