Zxd.Core/code/Zxd.Core.WebApi/Controllers/StatisticsController.cs

22 lines
682 B
C#

using System.ComponentModel.DataAnnotations;
using Zxd.Core.Domain.Dto.Dncmsbase;
namespace Zxd.Core.WebApi.Controllers
{
[ApiSignatureFilterForbid]
public class StatisticsController : BaseController
{
private readonly IStatisticsDomain _statisticsDomain;
public StatisticsController(IStatisticsDomain statisticsDomain)
{
_statisticsDomain = statisticsDomain;
}
[HttpGet("MonthAttention")]
public async Task<MonthAttentionDto> GetMonthAttentionData([Required] string year, [Required] string month)
{
return await _statisticsDomain.GetMonthAttentionData(year, month);
}
}
}