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
{
///
/// 考级测评
///
[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
///
/// 获取测评记录列表
///
///
///
[HttpGet(nameof(GetLevelExamPageList))]
public async Task> GetLevelExamPageList([FromQuery] LevelExamPageListParam paramDto)
{
var result = await _levelExamService.GetLevelExamPageList(paramDto);
return result;
}
///
/// 获取专项列表
///
///
[HttpGet(nameof(GetLevelExamSpecialList))]
public async Task> GetLevelExamSpecialList()
{
var result = await _levelExamService.GetLevelExamSpecialList();
return result;
}
}
}