71 lines
2.2 KiB
C#
71 lines
2.2 KiB
C#
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using VOL.Business.IServices;
|
|
using VOL.Business.Services;
|
|
using VOL.Core.Filters;
|
|
using VOL.Core.ManageUser;
|
|
using VOL.Model;
|
|
using VOL.Model.Norm.Request;
|
|
using VOL.Model.Norm.Response;
|
|
using VOL.Model.School.Request;
|
|
|
|
namespace VOL.WebApi.Controllers.Business
|
|
{
|
|
/// <summary>
|
|
/// 大屏数据
|
|
/// </summary>
|
|
[Route("api/[controller]")]
|
|
[ApiController]
|
|
[ApiExplorerSettings(GroupName = "v3")]
|
|
[TypeFilter(typeof(CustomApiResponseFilter))]
|
|
public class LargeScreenController : ControllerBase
|
|
{
|
|
#region 初始化
|
|
|
|
private readonly IN_SportsTestResultService _sportsTestResultService;
|
|
public LargeScreenController(
|
|
IN_SportsTestResultService sportsTestResultService)
|
|
{
|
|
_sportsTestResultService = sportsTestResultService;
|
|
}
|
|
|
|
#endregion
|
|
|
|
/// <summary>
|
|
/// 获取学期
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet(nameof(SemesterList))]
|
|
public async Task<List<SemesterModel>> SemesterList()
|
|
{
|
|
return await _sportsTestResultService.SemesterList();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 大屏数据统计
|
|
/// </summary>
|
|
/// <param name="paramDto"></param>
|
|
/// <returns></returns>
|
|
[HttpGet(nameof(LargeScreenDataStat))]
|
|
public async Task<LargeScreenDataStatModel> LargeScreenDataStat(LargeScreenDataStatParam paramDto)
|
|
{
|
|
return await _sportsTestResultService.LargeScreenDataStat(paramDto);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 大屏 班级平均运动强度监控
|
|
/// </summary>
|
|
/// <param name="paramDto"></param>
|
|
/// <returns></returns>
|
|
[HttpGet(nameof(LargeScreenAverageClassExerciseIntensity))]
|
|
public async Task<List<SportsProportionData>> LargeScreenAverageClassExerciseIntensity(LargeScreenAverageClassExerciseIntensityParam paramDto)
|
|
{
|
|
return await _sportsTestResultService.LargeScreenAverageClassExerciseIntensity(paramDto);
|
|
}
|
|
}
|
|
}
|