FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Blog.Core/Blog.Core.Model/Models/Module.cs at master · githubsunyf/Blog.Core · GitHub
githubsunyf
Blog.Core
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Blog.Core
/
Blog.Core.Model
/
Models
/
Module.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
121 lines (117 loc) · 4.08 KB
Breadcrumbs
Blog.Core
/
Blog.Core.Model
/
Models
/
Module.cs
Copy path
File metadata and controls
121 lines (117 loc) · 4.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
using
SqlSugar
;
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Linq
;
using
System
.
Text
;
using
System
.
Threading
.
Tasks
;
namespace
Blog
.
Core
.
Model
.
Models
{
/// <summary>
/// 接口API地址信息表
/// </summary>
public
class
Module
:
RootEntity
{
public
Module
(
)
{
//this.ChildModule = new List<Module>();
//this.ModulePermission = new List<ModulePermission>();
//this.RoleModulePermission = new List<RoleModulePermission>();
}
/// <summary>
///获取或设置是否禁用,逻辑上的删除,非物理删除
/// </summary>
[
SugarColumn
(
IsNullable
=
true
)
]
public
bool
?
IsDeleted
{
get
;
set
;
}
/// <summary>
/// 父ID
/// </summary>
[
SugarColumn
(
IsNullable
=
true
)
]
public
int
?
ParentId
{
get
;
set
;
}
/// <summary>
/// 名称
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"nvarchar"
,
Length
=
50
,
IsNullable
=
true
)
]
public
string
Name
{
get
;
set
;
}
/// <summary>
/// 菜单链接地址
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"nvarchar"
,
Length
=
100
,
IsNullable
=
true
)
]
public
string
LinkUrl
{
get
;
set
;
}
/// <summary>
/// 区域名称
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"nvarchar"
,
Length
=
int
.
MaxValue
,
IsNullable
=
true
)
]
public
string
Area
{
get
;
set
;
}
/// <summary>
/// 控制器名称
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"nvarchar"
,
Length
=
int
.
MaxValue
,
IsNullable
=
true
)
]
public
string
Controller
{
get
;
set
;
}
/// <summary>
/// Action名称
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"nvarchar"
,
Length
=
int
.
MaxValue
,
IsNullable
=
true
)
]
public
string
Action
{
get
;
set
;
}
/// <summary>
/// 图标
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"nvarchar"
,
Length
=
100
,
IsNullable
=
true
)
]
public
string
Icon
{
get
;
set
;
}
/// <summary>
/// 菜单编号
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"nvarchar"
,
Length
=
10
,
IsNullable
=
true
)
]
public
string
Code
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
int
OrderSort
{
get
;
set
;
}
/// <summary>
/// /描述
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"nvarchar"
,
Length
=
100
,
IsNullable
=
true
)
]
public
string
Description
{
get
;
set
;
}
/// <summary>
/// 是否是右侧菜单
/// </summary>
public
bool
IsMenu
{
get
;
set
;
}
/// <summary>
/// 是否激活
/// </summary>
public
bool
Enabled
{
get
;
set
;
}
/// <summary>
/// 创建ID
/// </summary>
[
SugarColumn
(
IsNullable
=
true
)
]
public
int
?
CreateId
{
get
;
set
;
}
/// <summary>
/// 创建者
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"nvarchar"
,
Length
=
50
,
IsNullable
=
true
)
]
public
string
CreateBy
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
[
SugarColumn
(
IsNullable
=
true
)
]
public
DateTime
CreateTime
{
get
;
set
;
}
=
DateTime
.
Now
;
/// <summary>
/// 修改ID
/// </summary>
[
SugarColumn
(
IsNullable
=
true
)
]
public
int
?
ModifyId
{
get
;
set
;
}
/// <summary>
/// 修改者
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"nvarchar"
,
Length
=
100
,
IsNullable
=
true
)
]
public
string
ModifyBy
{
get
;
set
;
}
/// <summary>
/// 修改时间
/// </summary>
[
SugarColumn
(
IsNullable
=
true
)
]
public
DateTime
?
ModifyTime
{
get
;
set
;
}
=
DateTime
.
Now
;
//public virtual Module ParentModule { get; set; }
//public virtual ICollection<Module> ChildModule { get; set; }
//public virtual ICollection<ModulePermission> ModulePermission { get; set; }
//public virtual ICollection<RoleModulePermission> RoleModulePermission { get; set; }
}
}
Back
|
FazBrowse Home
|
New Git URL