Commit 5e286859 authored by 黄奎's avatar 黄奎

页面修改

parent a1455f9f
......@@ -5,8 +5,10 @@ using Edu.Common.Enum;
using Edu.Common.Enum.Web;
using Edu.Common.Plugin;
using Edu.Model.ViewModel.Course;
using Edu.Model.ViewModel.StudyAbroad;
using Edu.Model.ViewModel.Web;
using Edu.Module.Course;
using Edu.Module.StudyAbroad;
using Edu.Module.User;
using Edu.Module.Web;
using Edu.WebApi.Filter;
......@@ -69,6 +71,11 @@ namespace Edu.WebApi.Controllers.Web
/// </summary>
private readonly WebTeacherModule teacherModule = new WebTeacherModule();
/// <summary>
/// 留学就业处理对象
/// </summary>
private readonly StudyAbroadModule studyAbroadModule = AOP.AOPHelper.CreateAOPObject<StudyAbroadModule>();
/// <summary>
/// 获取网站配置
/// </summary>
......@@ -407,5 +414,36 @@ namespace Edu.WebApi.Controllers.Web
qitem.SexStr
}));
}
/// <summary>
/// 获取留学就业列表
/// </summary>
/// <returns></returns>
[HttpPost]
[AllowAnonymous]
public ApiResult GetStudyAbroadList()
{
var query = new RB_StudyAbroad_ViewModel()
{
Name = base.ParmJObj.GetStringValue("Name"),
SaleState = Common.Enum.Sale.SaleStateEnum.Sell,
Group_Id = base.ParmJObj.GetInt("Group_Id"),
Type = base.ParmJObj.GetInt("Type"),
};
if (query.Group_Id <= 0)
{
string Domain = base.ParmJObj.GetStringValue("Domain");
int groupId = groupModule.GetGroupIdByDomainModule(Domain);
query.Group_Id = groupId;
}
var list = studyAbroadModule.GetStudyAbroadListModule(query);
return ApiResult.Success(data: list?.Select(qitem => new
{
qitem.Name,
qitem.Remark,
qitem.ImgCover,
}));
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment