You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.7 KiB
C#

using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Code.Entity
{
/// <summary>
/// 数据权限
/// </summary>
[SqlSugar.SugarTable("code_data_rule", "数据权限")]
public class CodeDataRule : BaseModel<long>
{
/// <summary>
/// 资源标识权限ID
/// </summary>
[SugarColumn(ColumnDescription = "资源标识权限ID")]
public long PermissionId { get; set; }
/// <summary>
/// 用户Id
/// </summary>
[SugarColumn(ColumnDescription = "用户Id")]
public long UserId { get; set; }
/// <summary>
/// 用户名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "用户名称", IsNullable = true, Length = 100)]
public string UserName { get; set; }
/// <summary>
/// 可视模板Id
/// </summary>
[SugarColumn(ColumnDescription = "可视模板Id")]
public long VisibleTemplateId { get; set; }
/// <summary>
/// 可视权限模板范围
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "可视权限模板范围", IsNullable = false, Length = 200)]
public string VisibleRuleScope { get; set; }
/// <summary>
/// 可视权限模板范围名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "可视权限模板范围名称", IsNullable = false, Length = 200)]
public string VisibleRuleScopeName { get; set; }
/// <summary>
/// 操作模板Id
/// </summary>
[SugarColumn(ColumnDescription = "操作模板Id")]
public long OperatorTemplateId { get; set; }
/// <summary>
/// 操作权限模板范围
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "操作权限模板范围", IsNullable = false, Length = 200)]
public string OperatorRuleScope { get; set; }
/// <summary>
/// 操作权限模板范围名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "操作权限模板范围名称", IsNullable = false, Length = 200)]
public string OperatorRuleScopeName { get; set; }
/// <summary>
/// 状态
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "状态")]
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 排序号
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "排序号", IsNullable = true, DefaultValue = "100")]
public int OrderNo { get; set; }
}
}