dss 2 年之前
父節點
當前提交
f9720ffd13
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Hotline/Settings/SysDicData.cs

+ 2 - 1
src/Hotline/Settings/SysDicData.cs

@@ -30,7 +30,8 @@ namespace Hotline.Settings
         /// <summary>
         /// 上级ID
         /// </summary>
-        public string ParentId { get; set; }
+        [SugarColumn(IsNullable = true)]
+        public string? ParentId { get; set; }
 
         [SugarColumn(IsIgnore = true)]
         public List<SysDicData> children { get; set; }