OpenAuth.Net/OpenAuth.App/Request/UpdateUserReq.cs
2020-10-22 14:59:36 +08:00

71 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Infrastructure;
using OpenAuth.Repository.Domain;
namespace OpenAuth.App.Request
{
/// <summary>
/// 添加或修改用户信息的请求
/// </summary>
public class UpdateUserReq
{
/// <summary>
/// 用户ID
/// </summary>
/// <returns></returns>
public string Id { get; set; }
/// <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>
/// <value>The organizations.</value>
public string OrganizationIds { get; set; }
public static implicit operator UpdateUserReq(User user)
{
return user.MapTo<UpdateUserReq>();
}
public static implicit operator User(UpdateUserReq view)
{
return view.MapTo<User>();
}
public UpdateUserReq()
{
OrganizationIds = string.Empty;
}
}
}