using Dlhis.Basic.Summary.Response; using Dlhis.Basic.Summary.Services; using Dlhis.Entity.Device.Enums; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace Dlhis.Basic.Summary.Controllers; [Authorize] [Route("api/[controller]")] [ApiController] public class SummariesController : ControllerBase { private readonly ISummaryService _summaryService; public SummariesController(ISummaryService summaryService) { _summaryService = summaryService; } /// /// 首页 /// /// [HttpGet("home-summary")] public async Task GetHomeSummaryAsync(DeviceTypeEnumType type) { return await _summaryService.GetHomeSummaryAsync(type); } }