aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/UserService.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-12 23:21:31 +0800
committercrupest <crupest@outlook.com>2020-11-12 23:21:31 +0800
commitd3da412fa7e10db8c721846152a2c056dd4ccbcf (patch)
tree4cd665209dc63fb8f9c658e9562481e32f7d3986 /BackEnd/Timeline/Services/UserService.cs
parentee1b2b5b100268aa510257a1a2cd4cd03f9fc72b (diff)
downloadtimeline-d3da412fa7e10db8c721846152a2c056dd4ccbcf.tar.gz
timeline-d3da412fa7e10db8c721846152a2c056dd4ccbcf.tar.bz2
timeline-d3da412fa7e10db8c721846152a2c056dd4ccbcf.zip
...
Diffstat (limited to 'BackEnd/Timeline/Services/UserService.cs')
-rw-r--r--BackEnd/Timeline/Services/UserService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Services/UserService.cs b/BackEnd/Timeline/Services/UserService.cs
index ed637ba3..b925742e 100644
--- a/BackEnd/Timeline/Services/UserService.cs
+++ b/BackEnd/Timeline/Services/UserService.cs
@@ -17,7 +17,7 @@ namespace Timeline.Services
/// <summary>
/// Null means not change.
/// </summary>
- public record ModifyUserParams(string? Username, string? Password, string? Nickname);
+ public record ModifyUserParams(string? Username = null, string? Password = null, string? Nickname = null);
public interface IUserService
{
@@ -74,7 +74,7 @@ namespace Timeline.Services
/// <param name="id">The id of the user.</param>
/// <param name="param">The new information.</param>
/// <returns>The new user info.</returns>
- /// <exception cref="ArgumentException">Thrown when some fields in <paramref name="info"/> is bad.</exception>
+ /// <exception cref="ArgumentException">Thrown when some fields in <paramref name="param"/> is bad.</exception>
/// <exception cref="UserNotExistException">Thrown when user with given id does not exist.</exception>
/// <remarks>
/// Version will increase if password is changed.