|
@@ -10,6 +10,7 @@ using MapsterMapper;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
using XF.Domain.Authentications;
|
|
|
using XF.Domain.Exceptions;
|
|
|
+using XF.Utility.EnumExtensions;
|
|
|
|
|
|
namespace Hotline.Api.Controllers
|
|
|
{
|
|
@@ -47,7 +48,7 @@ namespace Hotline.Api.Controllers
|
|
|
_knowApplication = knowApplication;
|
|
|
_userRepository = userRepository;
|
|
|
_systemOrganizeRepository = systemOrganizeRepository;
|
|
|
- }
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
#region 知识申请基础
|
|
@@ -215,6 +216,25 @@ namespace Hotline.Api.Controllers
|
|
|
#endregion
|
|
|
|
|
|
#region 我的知识申请
|
|
|
+ /// <summary>
|
|
|
+ /// 知识申请页面枚举值
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpGet("apply-base-data")]
|
|
|
+ public async Task<object> ApplyBaseData()
|
|
|
+ {
|
|
|
+ var rsp = new
|
|
|
+ {
|
|
|
+ EKnowledgeApplyStatus = EnumExts.GetDescriptions<EKnowledgeApplyStatus>(),
|
|
|
+ EKnowledgeApplyType = new List<KeyValuePair<int, string>>
|
|
|
+ {
|
|
|
+ new KeyValuePair<int, string>(0, "新增"),
|
|
|
+ new KeyValuePair<int, string>(1, "修改")
|
|
|
+ }
|
|
|
+ };
|
|
|
+ return rsp;
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 我的知识申请--全部
|
|
|
/// </summary>
|