2025-06-06 16:00:39 +08:00

57 lines
1.7 KiB
C#

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using VOL.Business.IServices;
using VOL.Business.IServices.LevelExam;
using VOL.Business.Services;
using VOL.Core.Filters;
using VOL.Model.Ai;
using VOL.Model;
using System.Collections.Generic;
namespace VOL.WebApi.Controllers.Business
{
/// <summary>
/// 考级测评
/// </summary>
[Route("api/[controller]")]
[ApiController]
[ApiExplorerSettings(GroupName = "v3")]
[TypeFilter(typeof(CustomApiResponseFilter))]
public class LevelExamController : ControllerBase
{
#region
private readonly ILevelExamService _levelExamService;
public LevelExamController(
ILevelExamService levelExamService)
{
_levelExamService = levelExamService;
}
#endregion
/// <summary>
/// 获取测评记录列表
/// </summary>
/// <param name="paramDto"></param>
/// <returns></returns>
[HttpGet(nameof(GetLevelExamPageList))]
public async Task<PageDataDto<LevelExamListModel>> GetLevelExamPageList([FromQuery] LevelExamPageListParam paramDto)
{
var result = await _levelExamService.GetLevelExamPageList(paramDto);
return result;
}
/// <summary>
/// 获取专项列表
/// </summary>
/// <returns></returns>
[HttpGet(nameof(GetLevelExamSpecialList))]
public async Task<List<LevelExamSpecialModel>> GetLevelExamSpecialList()
{
var result = await _levelExamService.GetLevelExamSpecialList();
return result;
}
}
}