|
@@ -150,25 +150,25 @@ namespace Hotline.Share.Dtos.Knowledge
|
|
|
/// </summary>
|
|
|
public string? Source { get; set; }
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// 知识分类名称
|
|
|
- /// </summary>
|
|
|
- public string KnowledgeTypeText => GetKnowledgeTypeText(KnowledgeType);
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// 获取知识分类名称
|
|
|
- /// </summary>
|
|
|
- /// <returns></returns>
|
|
|
- public string GetKnowledgeTypeText(List<KnowledgeRelationTypeDto> items)
|
|
|
- {
|
|
|
-
|
|
|
- if (KnowledgeType != null && KnowledgeType.Any())
|
|
|
- {
|
|
|
- var names = KnowledgeType.Select(x => x.KnowledgeTypeName).ToList();
|
|
|
- return string.Join(",", names);
|
|
|
- }
|
|
|
- return "";
|
|
|
- }
|
|
|
+ // /// <summary>
|
|
|
+ // /// 知识分类名称
|
|
|
+ // /// </summary>
|
|
|
+ // public string KnowledgeTypeText => GetKnowledgeTypeText(KnowledgeType);
|
|
|
+
|
|
|
+ ///// <summary>
|
|
|
+ ///// 获取知识分类名称
|
|
|
+ ///// </summary>
|
|
|
+ ///// <returns></returns>
|
|
|
+ //public string GetKnowledgeTypeText(List<KnowledgeRelationTypeDto> items)
|
|
|
+ // {
|
|
|
+
|
|
|
+ // if (KnowledgeType != null && KnowledgeType.Any())
|
|
|
+ // {
|
|
|
+ // var names = KnowledgeType.Select(x => x.KnowledgeTypeName).ToList();
|
|
|
+ // return string.Join(",", names);
|
|
|
+ // }
|
|
|
+ // return "";
|
|
|
+ // }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 标签名称
|
|
@@ -181,9 +181,9 @@ namespace Hotline.Share.Dtos.Knowledge
|
|
|
public string Summary { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 文档状态,默认草稿
|
|
|
+ /// 文档状态
|
|
|
/// </summary>
|
|
|
- public EKnowledgeStatus Status { get; set; } = EKnowledgeStatus.Drafts;
|
|
|
+ public EKnowledgeStatus Status { get; set; }
|
|
|
|
|
|
public string StatusText => Status.GetDescription();
|
|
|
|