diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-08 16:54:03 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-08 16:54:03 +0800 |
commit | d018e1c318646c6d7fecc8d3824129e9f1d5cf6c (patch) | |
tree | da11e395a3fd1340187fb785fc17e570171b942b /Timeline/Models/Http/User.cs | |
parent | dc1ab11cea249f4ca967f86b115147a63f7c93a5 (diff) | |
parent | e283a3e745bad05a55c572646d7b20fbaaeb522d (diff) | |
download | timeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.tar.gz timeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.tar.bz2 timeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.zip |
Merge branch 'master' into null-request-field
Diffstat (limited to 'Timeline/Models/Http/User.cs')
-rw-r--r-- | Timeline/Models/Http/User.cs | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/Timeline/Models/Http/User.cs b/Timeline/Models/Http/User.cs index 1de7fae2..3259a448 100644 --- a/Timeline/Models/Http/User.cs +++ b/Timeline/Models/Http/User.cs @@ -1,26 +1,26 @@ -using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations;
-namespace Timeline.Models.Http -{ - public class UserPutRequest - { - [Required] - public string Password { get; set; } - [Required] - public bool Administrator { get; set; } - } - - public class UserPatchRequest - { - public string Password { get; set; } - public bool? Administrator { get; set; } - } - - public class ChangePasswordRequest - { - [Required] - public string OldPassword { get; set; } - [Required] - public string NewPassword { get; set; } - } -} +namespace Timeline.Models.Http
+{
+ public class UserPutRequest
+ {
+ [Required]
+ public string Password { get; set; }
+ [Required]
+ public bool Administrator { get; set; }
+ }
+
+ public class UserPatchRequest
+ {
+ public string Password { get; set; }
+ public bool? Administrator { get; set; }
+ }
+
+ public class ChangePasswordRequest
+ {
+ [Required]
+ public string OldPassword { get; set; }
+ [Required]
+ public string NewPassword { get; set; }
+ }
+}
|