mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-10 03:14:45 +08:00
增加撤销与启动,详见:#I3ILBG
调整工程结构,采用模块化机制
This commit is contained in:
8
OpenAuth.App/UserManager/Request/ChangePasswordReq.cs
Normal file
8
OpenAuth.App/UserManager/Request/ChangePasswordReq.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace OpenAuth.App.Request
|
||||
{
|
||||
public class ChangePasswordReq
|
||||
{
|
||||
public string Account { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
||||
16
OpenAuth.App/UserManager/Request/ChangeProfileReq.cs
Normal file
16
OpenAuth.App/UserManager/Request/ChangeProfileReq.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace OpenAuth.App.Request
|
||||
{
|
||||
public class ChangeProfileReq
|
||||
{
|
||||
public string Account { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户姓名
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 性别
|
||||
/// </summary>
|
||||
public int Sex { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace OpenAuth.App.Request
|
||||
{
|
||||
public class QueryUserListByOrgReq : PageReq
|
||||
{
|
||||
public string orgId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace OpenAuth.App.Request
|
||||
{
|
||||
public class QueryUserListByRoleReq : PageReq
|
||||
{
|
||||
public string roleId { get; set; }
|
||||
}
|
||||
}
|
||||
7
OpenAuth.App/UserManager/Request/QueryUserListReq.cs
Normal file
7
OpenAuth.App/UserManager/Request/QueryUserListReq.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace OpenAuth.App.Request
|
||||
{
|
||||
public class QueryUserListReq : PageReq
|
||||
{
|
||||
public string orgId { get; set; }
|
||||
}
|
||||
}
|
||||
74
OpenAuth.App/UserManager/Request/UpdateUserReq.cs
Normal file
74
OpenAuth.App/UserManager/Request/UpdateUserReq.cs
Normal file
@@ -0,0 +1,74 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
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>
|
||||
[Required(ErrorMessage = "账号肯定不能为空啊~~")]
|
||||
public string Account { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Password { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用户姓名
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required(ErrorMessage="姓名不能为空")]
|
||||
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>
|
||||
[Required(ErrorMessage = "请为用户分配机构")]
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user