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.
53 lines
2.4 KiB
53 lines
2.4 KiB
2 years ago
|
using FreeSql.DataAnnotations;
|
||
|
|
||
|
namespace Znyc.CloudCar.Model.Entities
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 权限表
|
||
|
/// </summary>
|
||
|
[Table(Name = "rm_permission")]
|
||
|
public class PermissionEntity : EntityBase
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 父级Id
|
||
|
/// </summary>
|
||
|
public long ParentId { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 权限唯一CODE代码
|
||
|
/// </summary>
|
||
|
[Column(StringLength = 15)]
|
||
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Code”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
||
|
public string Code { get; set; }
|
||
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Code”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
||
|
|
||
|
/// <summary>
|
||
|
/// 权限名称
|
||
|
/// </summary>
|
||
|
[Column(StringLength = 15)]
|
||
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Name”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
||
|
public string Name { get; set; }
|
||
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Name”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
||
|
|
||
|
/// <summary>
|
||
|
/// 权限介绍
|
||
|
/// </summary>
|
||
|
[Column(StringLength = 25)]
|
||
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Intro”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
||
|
public string Intro { get; set; }
|
||
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Intro”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
||
|
|
||
|
/// <summary>
|
||
|
/// 权限类别
|
||
|
/// </summary>
|
||
|
public int Category { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// url规则
|
||
|
/// </summary>
|
||
|
[Column(StringLength = 30)]
|
||
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Url”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
||
|
public string Url { get; set; }
|
||
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Url”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
||
|
}
|
||
|
}
|