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.
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 SqlSugar ;
using System ;
namespace EntrustSettle.Model.Models
{
/// <summary>
/// 角色表
/// </summary>
public class Role : BaseEntity
{
public Role ( )
{
OrderSort = 1 ;
CreateTime = DateTime . Now ;
ModifyTime = DateTime . Now ;
IsDeleted = false ;
}
public Role ( string name )
{
Name = name ;
Description = "" ;
OrderSort = 1 ;
Enabled = true ;
CreateTime = DateTime . Now ;
ModifyTime = DateTime . Now ;
}
/// <summary>
/// 角色名
/// </summary>
[SugarColumn(Length = 50, IsNullable = true)]
public string Name { get ; set ; }
/// <summary>
///描述
/// </summary>
[SugarColumn(Length = 100, IsNullable = true)]
public string Description { get ; set ; }
/// <summary>
///排序
/// </summary>
public int OrderSort { get ; set ; }
/// <summary>
/// 自定义权限的部门ids
/// </summary>
[SugarColumn(Length = 500, IsNullable = true)]
public string Dids { get ; set ; }
/// <summary>
/// 权限范围
/// -1 无任何权限; 1 自定义权限; 2 本部门; 3 本部门及以下; 4 仅自己; 9 全部;
/// </summary>
[SugarColumn(IsNullable = true)]
public int AuthorityScope { get ; set ; } = - 1 ;
/// <summary>
/// 是否激活
/// </summary>
public bool Enabled { get ; set ; }
}
}