浏览代码

生成失败, 修改字段类型

qinchaoyue 6 月之前
父节点
当前提交
43cc38be68
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/Hotline/KnowledgeBase/Knowledge.cs
  2. 1 1
      src/Hotline/KnowledgeBase/KnowledgeHotWord.cs

+ 1 - 1
src/Hotline/KnowledgeBase/Knowledge.cs

@@ -215,5 +215,5 @@ public class Knowledge : WorkflowEntity//   WorkflowEntity  FullStateEntity
 	/// 收藏数量
 	/// </summary>
 	[SugarColumn(ColumnDescription = "收藏数量")]
-    public int CollectCount { get; set; }
+	public int? CollectCount { get; set; } = 0;
 }

+ 1 - 1
src/Hotline/KnowledgeBase/KnowledgeHotWord.cs

@@ -31,7 +31,7 @@ public class KnowledgeHotWord : CreationEntity
     /// 类型
     /// </summary>
     [SugarColumn(ColumnDescription = "类型")]
-    public EKnowledgeHotWordType Type { get; set; }
+    public EKnowledgeHotWordType? Type { get; set; }
 
     /// <summary>
     /// 是否启用