using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using New_College.IRepository;
using New_College.IServices;
using New_College.Model;
namespace New_College.Api.Controllers.Back
{
[Route("api/[controller]/[action]")]
[ApiController]
public class AutoController : ControllerBase
{
private readonly ITest_CycleTimeInfoServices test_CycleTimeInfoServices;
private readonly ID_LongIdMapServices d_LongIdMapServices;
private readonly IT_LongIdMapServices t_LongIdMapServices;
private readonly IT_EnrollmentPlaneServices t_EnrollmentPlaneServices;
private readonly ID_UniversityServices d_UniversityServices;
private readonly ID_MajorSalaryServices d_MajorSalaryServices;
public AutoController(ITest_CycleTimeInfoServices ITest_CycleTimeInfoServices
, ID_LongIdMapServices ID_LongIdMapServices
, IT_LongIdMapServices IT_LongIdMapServices
, IT_EnrollmentPlaneServices IT_EnrollmentPlaneServices
, ID_UniversityServices ID_UniversityServices
, ID_MajorSalaryServices ID_MajorSalaryServices)
{
test_CycleTimeInfoServices = ITest_CycleTimeInfoServices;
d_LongIdMapServices = ID_LongIdMapServices;
t_LongIdMapServices = IT_LongIdMapServices;
t_EnrollmentPlaneServices = IT_EnrollmentPlaneServices;
d_UniversityServices = ID_UniversityServices;
d_MajorSalaryServices = ID_MajorSalaryServices;
}
#region old
/////
///// 生成周期
/////
/////
//[HttpPost]
//public async Task> AutoCycleTime()
//{
// var result = await test_CycleTimeInfoServices.AutoCycleTime();
// return new MessageModel()
// {
// success = result,
// response = result,
// msg = result == true ? "成功" : "失败"
// };
//}
/////
/////
/////
/////
//[HttpPost]
//public async Task> Import()
//{
// var result = await d_LongIdMapServices.Import();
// return new MessageModel()
// {
// success = true,
// msg = "成功",
// response = result
// };
//}
#endregion
#region new T
/////
///// EnrollmentBatch
/////
/////
//[HttpPost]
//public async Task> ImportEnrollmentBatch()
//{
// return new MessageModel()
// {
// success = true,
// msg = "成功",
// response = await t_LongIdMapServices.ImportEnrollmentBatch()
// };
//}
/////
///// EnrollmentPlane
/////
/////
//[HttpPost]
//public async Task> ImportEnrollmentPlane()
//{
// return new MessageModel()
// {
// success = true,
// msg = "成功",
// response = await t_LongIdMapServices.ImportEnrollmentPlane()
// };
//}
/////
///// EnrollmentPlanedesc
/////
/////
//[HttpPost]
//public async Task> ImportEnrollmentPlanedesc()
//{
// return new MessageModel()
// {
// success = true,
// msg = "成功",
// response = await t_LongIdMapServices.ImportEnrollmentPlanedesc()
// };
//}
/////
///// Batchline
/////
/////
//[HttpPost]
//public async Task> ImportBatchline()
//{
// return new MessageModel()
// {
// success = true,
// msg = "成功",
// response = await t_LongIdMapServices.ImportBatchline()
// };
//}
/////
///// BatchTypeInfo
/////
/////
//[HttpPost]
//public async Task> ImportBatchTypeInfo()
//{
// return new MessageModel()
// {
// success = true,
// msg = "成功",
// response = await t_LongIdMapServices.ImportBatchTypeInfo()
// };
//}
#endregion
/////
///// 2019上海招生分数更新
/////
/////
//[HttpPost]
//public async Task> Import()
//{
// var result = await t_EnrollmentPlaneServices.Import();
// return new MessageModel() { success = true };
//}
/////
///// 下载图片
/////
/////
//[HttpPost]
//public async Task> SaveImg()
//{
// var result = await d_UniversityServices.SaveImg();
// return new MessageModel() { success = true, msg = "成功" };
//}
/////
///// 专业薪酬
/////
/////
//[HttpPost]
//public async Task Import()
//{
// return await d_MajorSalaryServices.Import();
//}
}
}