using System; using Infrastructure; using OpenAuth.Repository.Domain; namespace OpenAuth.App.Response { public class UserView { /// /// 用户ID /// /// public string Id { get; set; } /// /// /// public string Account { get; set; } /// /// 组织名称 /// /// public string Name { get; set; } /// /// /// public int Sex { get; set; } /// /// 当前状态 /// /// public int Status { get; set; } /// /// 组织类型 /// /// public int Type { get; set; } /// /// 创建时间 /// /// public DateTime CreateTime { get; set; } /// /// 创建人名字 /// /// The create user. public string CreateUser { get; set; } /// /// 所属组织名称,多个可用,分隔 /// /// The organizations. public string Organizations { get; set; } public string OrganizationIds { get; set; } public static implicit operator UserView(User user) { return user.MapTo(); } public static implicit operator User(UserView view) { return view.MapTo(); } public UserView() { Organizations = string.Empty; OrganizationIds = string.Empty; CreateUser = string.Empty; } } }