aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/User/CreateUserParams.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-27 19:29:20 +0800
committercrupest <crupest@outlook.com>2021-04-27 19:29:20 +0800
commita6150c487e7a0eb3fb1d9874d2fa7de61cdbfd30 (patch)
tree65ad2e897051d36ca49896e0df66841df4bffd6f /BackEnd/Timeline/Services/User/CreateUserParams.cs
parentcb3d8d0997679d2b9a961ec92b6555af4c4ef53f (diff)
downloadtimeline-a6150c487e7a0eb3fb1d9874d2fa7de61cdbfd30.tar.gz
timeline-a6150c487e7a0eb3fb1d9874d2fa7de61cdbfd30.tar.bz2
timeline-a6150c487e7a0eb3fb1d9874d2fa7de61cdbfd30.zip
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Services/User/CreateUserParams.cs')
-rw-r--r--BackEnd/Timeline/Services/User/CreateUserParams.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Services/User/CreateUserParams.cs b/BackEnd/Timeline/Services/User/CreateUserParams.cs
new file mode 100644
index 00000000..e66f83dc
--- /dev/null
+++ b/BackEnd/Timeline/Services/User/CreateUserParams.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace Timeline.Services.User
+{
+ public class CreateUserParams
+ {
+ public CreateUserParams(string username, string password)
+ {
+ Username = username ?? throw new ArgumentNullException(nameof(username));
+ Password = password ?? throw new ArgumentNullException(nameof(password));
+ }
+
+ public string Username { get; set; }
+ public string Password { get; set; }
+ public string? Nickname { get; set; }
+ }
+}