using System;
using Infrastructure;
using OpenAuth.Repository.Domain;
namespace OpenAuth.App.Response
{
public class UserView
{
///
/// 用户ID
///
///
public long 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 long CreateUser { get; set; }
///
/// 所属组织名称,多个可用,分隔
///
/// The organizations.
public string Organizations { get; set; }
public string OrganizationIds { get; set; }
///
/// 用户最大部门等级
///
public string OrgMaxLevel { get; set; }
public static implicit operator UserView(SysUser user)
{
return user.MapTo();
}
public static implicit operator SysUser(UserView view)
{
return view.MapTo();
}
}
}