using iWareCommon.Common.Entity;
|
using iWareCommon.Utils;
|
using iWareDataCore.ORM;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace iWareDataCore.RBAC.Entity
|
{
|
/// <summary>
|
/// 菜单权限值对应的实体
|
/// </summary>
|
public class ContentValueEntity : ITreeEntity<ContentValueEntity>
|
{
|
/// <summary>
|
/// 主键
|
/// </summary>
|
public int Id { get; set; }
|
|
/// <summary>
|
/// 菜单目录名称
|
/// </summary>
|
|
public string Name { get; set; }
|
|
/// <summary>
|
/// 菜单目录备注
|
/// </summary>
|
public string Remark { get; set; }
|
|
/// <summary>
|
/// 菜单目录访问地址
|
/// </summary>
|
public string Url { get; set; }
|
|
/// <summary>
|
/// 父菜单Id
|
/// </summary>
|
public int ParentId { get; set; }
|
|
/// <summary>
|
/// 菜单类型
|
/// </summary>
|
public int Type { get; set; }
|
|
/// <summary>
|
/// 菜单排序
|
/// </summary>
|
public int ContentIndex { get; set; }
|
|
/// <summary>
|
/// 菜单图标
|
/// </summary>
|
public string Image { get; set; }
|
|
/// <summary>
|
/// 子菜单
|
/// </summary>
|
public List<ContentValueEntity> Children { get; set; }
|
|
/// <summary>
|
/// 权限值
|
/// </summary>
|
public int Value { get; set; }
|
|
|
/// <summary>
|
/// 构造函数
|
/// </summary>
|
public ContentValueEntity() { }
|
|
|
/// <summary>
|
/// 构造函数
|
/// </summary>
|
/// <param name="content">ORM中的Content对象</param>
|
/// <param name="value">权限值</param>
|
public ContentValueEntity(RBACContent content, int value)
|
{
|
EntityPropHelper<ContentValueEntity, RBACContent>.CopyProp(content, this, ContentEntity.GetColumnMap());
|
this.Children = new List<ContentValueEntity>();
|
this.Value = value;
|
}
|
|
|
|
}
|
}
|