using Infrastructure;
using OpenAuth.Repository.Domain;
namespace OpenAuth.App.Request
{
///
/// 添加或修改用户信息的请求
///
public class UpdateUserReq
{
///
/// 用户ID
///
///
public string Id { get; set; }
///
///
///
public string Account { get; set; }
///
///
///
public string Password { get; set; }
///
/// 组织名称
///
///
public string Name { get; set; }
///
///
///
public int Sex { get; set; }
///
/// 当前状态
///
///
public int Status { get; set; }
///
/// 所属组织Id,多个可用,分隔
///
/// The organizations.
public string OrganizationIds { get; set; }
public static implicit operator UpdateUserReq(User user)
{
return user.MapTo();
}
public static implicit operator User(UpdateUserReq view)
{
return view.MapTo();
}
public UpdateUserReq()
{
OrganizationIds = string.Empty;
}
}
}