Commit 90931cd2 authored by 黄奎's avatar 黄奎

新增官网接口

parent b4ea9827
......@@ -340,6 +340,34 @@ namespace Edu.WebApi.Controllers.Web
return ApiResult.Success(data: result);
}
/// <summary>
/// 获取课程列表
/// </summary>
/// <returns></returns>
[HttpPost]
[AllowAnonymous]
public ApiResult GetCourseList()
{
var query = new RB_Course_ViewModel()
{
CateId = base.ParmJObj.GetInt("CateId", 0),
Group_Id = base.ParmJObj.GetInt("Group_Id"),
};
if (query.Group_Id <= 0)
{
string Domain = base.ParmJObj.GetStringValue("Domain");
int groupId = groupModule.GetGroupIdByDomainModule(Domain);
query.Group_Id = groupId;
}
var list = courseModule.GetCourseListModule(query);
return ApiResult.Success(data: list.Select(qitem => new
{
qitem.CourseId,
qitem.CourseName,
}));
}
/// <summary>
/// 官网开班计划
/// </summary>
......
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