1
hutongqing
2024-09-13 3ca95f10e441ff66d4d62f8dfe202bfb26c3c8e8
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using WIDESEA_Core.DB.Models;
using WIDESEA_Core.Tenants;
 
namespace WIDESEA_Model.Models
{
    [SugarTable("Sys_Menu", "菜单配置"), MultiTenant]
    public class Sys_Menu : BaseEntity
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "菜单ID")]
        public int MenuId { get; set; }
 
        /// <summary>
        /// 菜单名称
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "菜单名称")]
        public string MenuName { get; set; }
 
        /// <summary>
        /// 权限
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "权限")]
        public string Auth { get; set; }
 
        /// <summary>
        /// 图标
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "图标")]
        public string Icon { get; set; }
 
        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "描述")]
        public string Description { get; set; }
 
        /// <summary>
        /// 是否启用
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "是否启用")]
        public byte? Enable { get; set; }
 
        /// <summary>
        /// 表名
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "表名")]
        public string TableName { get; set; }
 
        /// <summary>
        /// 父级ID
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "父级ID")]
        public int ParentId { get; set; }
 
        /// <summary>
        /// 路径
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "路径")]
        public string Url { get; set; }
 
        /// <summary>
        /// 排序号
        /// </summary>
        [SugarColumn(IsNullable = true,ColumnDescription ="排序号")]
        public int? OrderNo { get; set; }
 
        /// <summary>
        /// 菜单类型
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "菜单类型")]
        public int? MenuType { get; set; }
 
        [Navigate(NavigateType.OneToMany, nameof(ParentId), nameof(MenuId)), SugarColumn(IsIgnore = true, IsNullable = true)]
        public List<Sys_Menu> Menus { get; set; }
 
    }
}