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.

79 lines
2.9 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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_template","数据权限模板")]
public class CodeDataRuleTemplate : BaseModel<long>
{
/// <summary>
/// 权限模板类型
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "权限模板类型", IsNullable = false, Length = 200)]
public string TemplateName { get; set; }
/// <summary>
/// 权限类型 visible 可视范围 operate 操作范围
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "权限类型", IsNullable = false, Length = 100)]
public string RuleType { get; set; } = "visible";
/// <summary>
/// 权限模板范围
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "权限模板范围", IsNullable = false, Length = 200)]
public string RuleScope { get; set; }
/// <summary>
/// 权限模板范围名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "权限模板范围名称", IsNullable = false, Length = 200)]
public string RuleScopeName { get; set; }
/// <summary>
/// 资源标识权限ID
/// </summary>
[SugarColumn(ColumnDescription = "资源标识权限ID")]
public long PermissionId { get; set; }
/// <summary>
/// 权限实体
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "权限实体", IsNullable = false, Length = 100)]
public string PermissionEntity { get; set; }
/// <summary>
/// 中文视图名
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "中文视图名", IsNullable = true, Length = 50)]
public string ColumnView { get; set; }
/// <summary>
/// 权限规则
/// </summary>
[SugarColumn(ColumnDescription = "权限规则", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string DataRules { get; set; }
/// <summary>
/// 权限描述
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "权限描述", IsNullable = true, Length = 200)]
public string Description { 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; }
}
}