using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
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]
    public class MajorSalaryController : ControllerBase
    {
        private readonly ID_MajorSalaryServices iD_MajorSalaryServices;
        public MajorSalaryController(ID_MajorSalaryServices ID_MajorSalaryServices)
        {
            iD_MajorSalaryServices = ID_MajorSalaryServices;
        }

        /// <summary>
        /// 获取高薪推荐
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public async Task<MessageModel<PageModel<MajorSalaryResult>>> GetMajorSalaryResult([FromQuery] MajorSalaryQuery query)
        {
            return await iD_MajorSalaryServices.GetMajorSalaryResult(query);
        }
    }
}
