SysRoleView.cs
1.31 KB
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
// ***********************************************************************
// <summary>角色模型视图</summary>
// ***********************************************************************
using Infrastructure;
namespace WebRepository
{
public partial class SysRoleView: SysEntity
{
/// <summary>
/// 名称
/// </summary>
/// <returns></returns>
public string Name { get; set; }
/// <summary>
/// 当前状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 角色类型
/// </summary>
public int Type { get; set; }
/// <summary>
/// 所属组织名称,多个可用,分隔
/// </summary>
public string Organizations { get; set; }
/// <summary>
/// 所属组织ID,多个可用,分隔
/// </summary>
public string OrganizationIds { get; set; }
/// <summary>
///是否属于某用户
/// </summary>
public bool Checked { get; set; }
public static implicit operator SysRoleView(SysRole role)
{
return role.MapTo<SysRoleView>();
}
public static implicit operator SysRole(SysRoleView rolevm)
{
return rolevm.MapTo<SysRole>();
}
}
}