Explorar el Código

update Admin.NET/Admin.NET.Core/Entity/SysFile.cs.
添加是否公开字段,如果设置true,所有人都可以查看,默认只有自己或有权限的人可以查看
文件添加数据权限,用于进行私有附件处理


Signed-off-by: Mr先生 <362270511@qq.com>

Mr先生 hace 2 años
padre
commit
8234b32303
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      Admin.NET/Admin.NET.Core/Entity/SysFile.cs

+ 8 - 1
Admin.NET/Admin.NET.Core/Entity/SysFile.cs

@@ -12,7 +12,7 @@ namespace Admin.NET.Core;
 [SugarTable(null, "系统文件表")]
 [SysTable]
 [SugarIndex("index_{table}_F", nameof(FileName), OrderByType.Asc)]
-public partial class SysFile : EntityBase
+public partial class SysFile : EntityBaseData
 {
     /// <summary>
     /// 提供者
@@ -101,4 +101,11 @@ public partial class SysFile : EntityBase
     [SugarColumn(ColumnDescription = "文件类别", Length = 128)]
     [MaxLength(128)]
     public string? FileType { get; set; }
+
+    /// <summary>
+    /// 是否公开
+    /// 如果设置true,所有人都可以查看,默认只有自己或有权限的人可以查看
+    /// </summary>
+    [SugarColumn(ColumnDescription = "是否公开", DefaultValue = "false")]
+    public bool IsPublic { get; set; } = false;
 }