SysUserView.cs
2.08 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
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 Hh.Mes.Common.Infrastructure;
namespace WebRepository
{
public class SysUserView: SysEntity
{
/// <summary>
/// </summary>
/// <returns></returns>
public string Account { get; set; }
/// <summary>
/// </summary>
/// <returns></returns>
public string PassWord { get; set; }
/// <summary>
/// 组织名称
/// </summary>
/// <returns></returns>
public string Name { get; set; }
/// <summary>
/// </summary>
/// <returns></returns>
public int Sex { get; set; }
/// <summary>
/// 当前状态
/// </summary>
/// <returns></returns>
public int Status { get; set; }
/// <summary>
/// 人脸id
/// </summary>
public string FaceID { get; set; }
/// <summary>
/// 图片
/// </summary>
public string FacePicture { get; set; }
/// <summary>
/// 工卡id
/// </summary>
public string Idcard { get; set; }
/// <summary>
/// 图片
/// </summary>
public string PhoneNumber { get; set; }
/// <summary>
/// 组织类型
/// </summary>
/// <returns></returns>
public int Type { get; set; }
/// <summary>
/// 所属组织名称,多个可用,分隔
/// </summary>
/// <value>The organizations.</value>
public string Organizations { get; set; }
public string Roles { get; set; }
public string RoleIds { get; set; }
public string OrganizationIds { get; set; }
public static implicit operator SysUserView(SysUser user)
{
return user.MapTo<SysUserView>();
}
public static implicit operator SysUser(SysUserView view)
{
return view.MapTo<SysUser>();
}
public SysUserView()
{
Organizations = string.Empty;
OrganizationIds = string.Empty;
Roles = string.Empty;
RoleIds = string.Empty;
}
}
}