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.

60 lines
1.6 KiB
C#

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; }
}
}