37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
|
|
using Microsoft.AspNetCore.Mvc;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
using VOL.Ai.IServices;
|
||
|
|
using VOL.Core.Filters;
|
||
|
|
using VOL.Model;
|
||
|
|
using VOL.Model.Ai.Request;
|
||
|
|
using VOL.Model.Ai.Response;
|
||
|
|
|
||
|
|
namespace VOL.WebApi.Controllers.AI
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 壹路AI运动站
|
||
|
|
/// </summary>
|
||
|
|
[Route("api/[controller]")]
|
||
|
|
[ApiController]
|
||
|
|
[ApiExplorerSettings(GroupName = "v6")]
|
||
|
|
[TypeFilter(typeof(CustomApiResponseFilter))]
|
||
|
|
public class AiSportsStationController : ControllerBase
|
||
|
|
{
|
||
|
|
private readonly IAiSportsStationService _aiSportsStationService;
|
||
|
|
|
||
|
|
public AiSportsStationController(IAiSportsStationService aiSportsStationService)
|
||
|
|
{
|
||
|
|
_aiSportsStationService = aiSportsStationService;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 获取壹路AI运动站列表
|
||
|
|
/// </summary>
|
||
|
|
[HttpGet(nameof(GetAiSportsStationList))]
|
||
|
|
public async Task<PageDataDto<AiSportsStationDto>> GetAiSportsStationList([FromQuery] AiSportsStationListRequest paramDto)
|
||
|
|
{
|
||
|
|
return await _aiSportsStationService.GetAiSportsStationList(paramDto);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|