2016-01-05 17:14:10 +08:00
|
|
|
|
using System;
|
2015-11-19 21:49:39 +08:00
|
|
|
|
using Infrastructure;
|
2017-11-29 20:49:14 +08:00
|
|
|
|
using OpenAuth.Repository.Domain;
|
2015-11-19 21:49:39 +08:00
|
|
|
|
|
2017-11-30 17:47:41 +08:00
|
|
|
|
namespace OpenAuth.App.Response
|
2015-11-19 21:49:39 +08:00
|
|
|
|
{
|
|
|
|
|
public class UserView
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2017-10-11 16:19:34 +08:00
|
|
|
|
public string Id { get; set; }
|
2015-11-19 21:49:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public string Account { 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>
|
|
|
|
|
/// 组织类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public int Type { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建人名字
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The create user.</value>
|
|
|
|
|
public string CreateUser { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 所属组织名称,多个可用,分隔
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The organizations.</value>
|
|
|
|
|
public string Organizations { get; set; }
|
|
|
|
|
|
|
|
|
|
public string OrganizationIds { get; set; }
|
|
|
|
|
|
|
|
|
|
public static implicit operator UserView(User user)
|
|
|
|
|
{
|
2015-12-03 23:39:27 +08:00
|
|
|
|
return user.MapTo<UserView>();
|
2015-11-19 21:49:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static implicit operator User(UserView view)
|
|
|
|
|
{
|
2015-12-03 23:39:27 +08:00
|
|
|
|
return view.MapTo<User>();
|
2015-11-19 21:49:39 +08:00
|
|
|
|
}
|
2015-12-05 21:24:01 +08:00
|
|
|
|
|
|
|
|
|
public UserView()
|
|
|
|
|
{
|
|
|
|
|
Organizations = string.Empty;
|
|
|
|
|
OrganizationIds = string.Empty;
|
|
|
|
|
CreateUser = string.Empty;
|
|
|
|
|
}
|
2015-11-19 21:49:39 +08:00
|
|
|
|
}
|
|
|
|
|
}
|