using System; using System.Collections.Generic; using System.Linq; using System.Text.Json.Serialization; using SqlSugar; using Yi.Framework.Model.Base; namespace Yi.Framework.Model.RABC.Entitys { /// /// 角色表 /// [SugarTable("Role")] public partial class RoleEntity : IBaseModelEntity { public RoleEntity() { CreateTime = DateTime.Now; } [JsonConverter(typeof(ValueToStringConverter))] [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)] public long Id { get; set; } /// /// /// [SugarColumn(ColumnName = "RoleName")] public string? RoleName { get; set; } /// /// 创建者 /// [SugarColumn(ColumnName = "CreateUser")] public long? CreateUser { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "CreateTime")] public DateTime? CreateTime { get; set; } /// /// 修改时间 /// [SugarColumn(ColumnName = "ModifyTime")] public DateTime? ModifyTime { get; set; } /// /// 是否删除 /// [SugarColumn(ColumnName = "IsDeleted")] public bool? IsDeleted { get; set; } /// /// 租户Id /// [SugarColumn(ColumnName = "TenantId")] public long? TenantId { get; set; } /// /// 修改者 /// [SugarColumn(ColumnName = "ModifyUser")] public long? ModifyUser { get; set; } /// /// 角色编码 /// [SugarColumn(ColumnName = "RoleCode")] public string? RoleCode { get; set; } /// /// 排序字段 /// [SugarColumn(ColumnName = "OrderNum")] public int? OrderNum { get; set; } /// /// 描述 /// [SugarColumn(ColumnName = "Remark")] public string? Remark { get; set; } /// /// 角色数据范围 /// [SugarColumn(ColumnName = "DataScope")] public int? DataScope { get; set; } [Navigate(typeof(RoleMenuEntity), nameof(RoleMenuEntity.RoleId), nameof(RoleMenuEntity.MenuId))] public List? Menus { get; set; } [Navigate(typeof(RoleDeptEntity), nameof(RoleDeptEntity.RoleId), nameof(RoleDeptEntity.DeptId))] public List? Depts { get; set; } } }