Commit 13c46c86 authored by 吴春's avatar 吴春

提交代码

parent 3ff8e5f4
using System;
using System.Collections.Generic;
using System.Linq;
using Edu.Cache.User;
using Edu.Common.API;
using Edu.Common.Enum.Course;
......@@ -362,6 +363,40 @@ namespace Edu.WebApi.Controllers.Course
pageModel.PageData = result;
return ApiResult.Success(data: pageModel);
}
/// <summary>
/// 获取预警枚举列表
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult GetGuestClassHoursEarlyWarningEnumList()
{
var list = EnumHelper.EnumToList(typeof(GuestClassHoursEarlyWarningEnum));
return ApiResult.Success("", list.Select(x => new
{
x.Name,
x.Id
}));
}
/// <summary>
/// 获取类型枚举列表
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult GetOrderJoinTypeEnumEnumList()
{
var list = EnumHelper.EnumToList(typeof(Common.Enum.Sale.OrderJoinTypeEnum));
return ApiResult.Success("", list.Select(x => new
{
x.Name,
x.Id
}));
}
#endregion
}
}
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