更新 Admin.NET/Admin.NET.Core/Entity/SysFile.cs
添加是否公开字段,如果设置true,所有人都可以查看,默认只有自己或有权限的人可以查看 文件添加数据权限,用于进行私有附件处理
This commit is contained in:
parent
ced6b45b4e
commit
9e04a15e9c
@ -12,7 +12,7 @@ namespace Admin.NET.Core;
|
|||||||
[SugarTable(null, "系统文件表")]
|
[SugarTable(null, "系统文件表")]
|
||||||
[SysTable]
|
[SysTable]
|
||||||
[SugarIndex("index_{table}_F", nameof(FileName), OrderByType.Asc)]
|
[SugarIndex("index_{table}_F", nameof(FileName), OrderByType.Asc)]
|
||||||
public partial class SysFile : EntityBase
|
public partial class SysFile : EntityBaseData
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供者
|
/// 提供者
|
||||||
@ -101,4 +101,11 @@ public partial class SysFile : EntityBase
|
|||||||
[SugarColumn(ColumnDescription = "文件类别", Length = 128)]
|
[SugarColumn(ColumnDescription = "文件类别", Length = 128)]
|
||||||
[MaxLength(128)]
|
[MaxLength(128)]
|
||||||
public string? FileType { get; set; }
|
public string? FileType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否公开
|
||||||
|
/// 如果设置true,所有人都可以查看,默认只有自己或有权限的人可以查看
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnDescription = "是否公开", DefaultValue = "false")]
|
||||||
|
public bool IsPublic { get; set; } = false;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user