aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http/UserController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-27 00:07:09 +0800
committercrupest <crupest@outlook.com>2020-11-27 00:07:09 +0800
commit7883590a7a0c5c5c4e5cff6290e26c64e1258a25 (patch)
tree28e1ad4d02c4054e13b6cf539c64aba8d00df3e5 /BackEnd/Timeline/Models/Http/UserController.cs
parentce85af942c64fc3bad4e4502d683f730c882de96 (diff)
downloadtimeline-7883590a7a0c5c5c4e5cff6290e26c64e1258a25.tar.gz
timeline-7883590a7a0c5c5c4e5cff6290e26c64e1258a25.tar.bz2
timeline-7883590a7a0c5c5c4e5cff6290e26c64e1258a25.zip
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Models/Http/UserController.cs')
-rw-r--r--BackEnd/Timeline/Models/Http/UserController.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/BackEnd/Timeline/Models/Http/UserController.cs b/BackEnd/Timeline/Models/Http/UserController.cs
index 92a63874..1b4d09ec 100644
--- a/BackEnd/Timeline/Models/Http/UserController.cs
+++ b/BackEnd/Timeline/Models/Http/UserController.cs
@@ -7,9 +7,9 @@ using Timeline.Services;
namespace Timeline.Models.Http
{
/// <summary>
- /// Request model for <see cref="UserController.Patch(UserPatchRequest, string)"/>.
+ /// Request model for <see cref="UserController.Patch(HttpUserPatchRequest, string)"/>.
/// </summary>
- public class UserPatchRequest
+ public class HttpUserPatchRequest
{
/// <summary>
/// New username. Null if not change. Need to be administrator.
@@ -31,9 +31,9 @@ namespace Timeline.Models.Http
}
/// <summary>
- /// Request model for <see cref="UserController.CreateUser(CreateUserRequest)"/>.
+ /// Request model for <see cref="UserController.CreateUser(HttpCreateUserRequest)"/>.
/// </summary>
- public class CreateUserRequest
+ public class HttpCreateUserRequest
{
/// <summary>
/// Username of the new user.
@@ -49,9 +49,9 @@ namespace Timeline.Models.Http
}
/// <summary>
- /// Request model for <see cref="UserController.ChangePassword(ChangePasswordRequest)"/>.
+ /// Request model for <see cref="UserController.ChangePassword(HttpChangePasswordRequest)"/>.
/// </summary>
- public class ChangePasswordRequest
+ public class HttpChangePasswordRequest
{
/// <summary>
/// Old password.
@@ -66,11 +66,11 @@ namespace Timeline.Models.Http
public string NewPassword { get; set; } = default!;
}
- public class UserControllerAutoMapperProfile : Profile
+ public class HttpUserControllerModelAutoMapperProfile : Profile
{
- public UserControllerAutoMapperProfile()
+ public HttpUserControllerModelAutoMapperProfile()
{
- CreateMap<UserPatchRequest, ModifyUserParams>();
+ CreateMap<HttpUserPatchRequest, ModifyUserParams>();
}
}
}