You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using Common.Enum;
|
|
|
|
|
using Entity.Base;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace Entity.DbModel.System
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 系统角色表
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarTable("sys_role")]
|
|
|
|
|
public partial class SysRole : EntityBase
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "name")]
|
|
|
|
|
public virtual string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 编码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "code")]
|
|
|
|
|
public string? Code { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 排序
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "order_no")]
|
|
|
|
|
public int OrderNo { get; set; } = 100;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 数据范围(1全部数据 2本部门及以下数据 3本部门数据 4仅本人数据 5自定义数据)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "data_scope")]
|
|
|
|
|
public DataScopeEnum DataScope { get; set; } = DataScopeEnum.Self;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 备注
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "remark")]
|
|
|
|
|
public string? Remark { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "status")]
|
|
|
|
|
public StatusEnum Status { get; set; } = StatusEnum.Enable;
|
|
|
|
|
}
|
|
|
|
|
}
|