using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using New_College.AuthHelper.OverWrite;
using New_College.IServices;
using New_College.Model;
using New_College.Model.ViewModels;

namespace New_College.Api.Controllers.Front
{
    [Route("api/front/[controller]/[action]")]
    [ApiController]
    [Authorize]
    public class ExaminationPolicyController : ControllerBase
    {
        private readonly IV_ExaminationPolicyServices iV_ExaminationPolicyServices;
        public ExaminationPolicyController(IV_ExaminationPolicyServices IV_ExaminationPolicyServices)
        {
            iV_ExaminationPolicyServices = IV_ExaminationPolicyServices;
        }

        /// <summary>
        /// 获取考试时间
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        [HttpGet]
        public async Task<MessageModel<ExaminationPolicyOneDetail>> GetExaminationPolicyDetail([FromQuery] ExaminationPolicyAreaQuery query)
        {
            return await iV_ExaminationPolicyServices.GetExaminationPolicyDetail(query);
        }
    }
}
