22 lines
682 B
C#
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);
|
|
}
|
|
}
|
|
}
|