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.

106 lines
2.2 KiB
C#

1 year ago
using System;
using SqlSugar;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Admin.Core.Model.Sys
{
///<summary>
///角色信息表实体类
///</summary>
[Table("SysRole")]
[SugarTable("SysRole", "admin_sqlite")]
public class SysRole
{
/// <summary>
/// 角色ID
/// </summary>
[Key]
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[Required]
public int RoleID { get; set; }
/// <summary>
/// 角色名称
/// </summary>
public string RoleName { get; set; }
/// <summary>
/// 角色权限字符串
/// </summary>
public string RoleKey { get; set; }
/// <summary>
/// 显示顺序
/// </summary>
public string RoleSort { get; set; }
/// <summary>
/// 数据范围1全部数据权限 2自定数据权限 3本部门数据权限 4本部门及以下数据权限
/// </summary>
public string DataScope { get; set; }
/// <summary>
/// 菜单树选择项是否关联显示
/// </summary>
public bool? MenuCheckStrictly { get; set; }
/// <summary>
/// 部门树选择项是否关联显示
/// </summary>
public bool? DeptCheckStrictly { get; set; }
/// <summary>
/// 角色状态0正常 1停用
/// </summary>
public int? Status { get; set; }
/// <summary>
/// 删除标志0代表存在 1代表删除
/// </summary>
public bool? DelFlag { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 创建者
/// </summary>
public string CreateBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime? CreateTime { get; set; }
/// <summary>
/// 更新者
/// </summary>
public string UpdateBy { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdateTime { get; set; }
}
}