From 57151c879376374425adb04fb68dad2cf7930df8 Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Mon, 5 Aug 2019 18:58:56 +0800 Subject: 3 things. 1. Exchange Models and Entities namespace. 2. Fix the bug that input with missing field leads to 500. 3. Write unit tests. --- Timeline/Entities/Http/User.cs | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 Timeline/Entities/Http/User.cs (limited to 'Timeline/Entities/Http/User.cs') diff --git a/Timeline/Entities/Http/User.cs b/Timeline/Entities/Http/User.cs deleted file mode 100644 index b5384778..00000000 --- a/Timeline/Entities/Http/User.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace Timeline.Entities.Http -{ - public class UserPutRequest - { - public string Password { get; set; } - public bool Administrator { get; set; } - } - - public class UserPatchRequest - { - public string Password { get; set; } - public bool? Administrator { get; set; } - } - - public class ChangePasswordRequest - { - public string OldPassword { get; set; } - public string NewPassword { get; set; } - } -} -- cgit v1.2.3