dss 2 years ago
parent
commit
f9720ffd13
1 changed files with 2 additions and 1 deletions
  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; }