schangxiang@126.com
2025-06-04 3e837690e8a1d3b6e86f3db72d2d84eab1bc7114
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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;
        }
 
        
 
    }
}