|
@@ -1,4 +1,5 @@
|
|
|
-using Hotline.Application.FlowEngine;
|
|
|
+using Google.Protobuf.WellKnownTypes;
|
|
|
+using Hotline.Application.FlowEngine;
|
|
|
using Hotline.Application.Knowledge;
|
|
|
using Hotline.FlowEngine.Definitions;
|
|
|
using Hotline.FlowEngine.Workflows;
|
|
@@ -15,6 +16,7 @@ using Hotline.Share.Enums.KnowledgeBase;
|
|
|
using Hotline.Users;
|
|
|
using MapsterMapper;
|
|
|
using MediatR;
|
|
|
+using Microsoft.AspNetCore.DataProtection.KeyManagement;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
using SqlSugar;
|
|
|
using XF.Domain.Authentications;
|
|
@@ -373,7 +375,12 @@ namespace Hotline.Api.Controllers
|
|
|
[HttpGet("knowledge-status-data")]
|
|
|
public async Task<object> KnowledgeStatus()
|
|
|
{
|
|
|
- return EnumExts.GetDescriptions<EKnowledgeStatus>();
|
|
|
+ return new List<KeyValuePair<int, string>>
|
|
|
+ {
|
|
|
+ new KeyValuePair<int, string>(1, "审核中"),
|
|
|
+ new KeyValuePair<int, string>(3, "已上架"),
|
|
|
+ new KeyValuePair<int, string>(4, "已下架")
|
|
|
+ };
|
|
|
}
|
|
|
|
|
|
/// <summary>
|