diff options
author | crupest <crupest@outlook.com> | 2019-04-21 23:23:49 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-21 23:23:49 +0800 |
commit | 0920d6ca8d8f92e612148aa1d3c4eaea5f407d94 (patch) | |
tree | e139e794df8cd20c1cf4f60c668dd1d94bf239e1 /Timeline/Entities/AdminUser.cs | |
parent | 748aa44ccaf88686ffbaf9e31d025be24e2d200a (diff) | |
download | timeline-0920d6ca8d8f92e612148aa1d3c4eaea5f407d94.tar.gz timeline-0920d6ca8d8f92e612148aa1d3c4eaea5f407d94.tar.bz2 timeline-0920d6ca8d8f92e612148aa1d3c4eaea5f407d94.zip |
Allow ordinary user to patch his password.
Diffstat (limited to 'Timeline/Entities/AdminUser.cs')
-rw-r--r-- | Timeline/Entities/AdminUser.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Timeline/Entities/AdminUser.cs b/Timeline/Entities/AdminUser.cs deleted file mode 100644 index eb126165..00000000 --- a/Timeline/Entities/AdminUser.cs +++ /dev/null @@ -1,30 +0,0 @@ -namespace Timeline.Entities -{ - public class UserModifyRequest - { - public string Password { get; set; } - public string[] Roles { get; set; } - } - - public class UserPutResponse - { - public const int CreatedCode = 0; - public const int ModifiedCode = 1; - - public static UserPutResponse Created { get; } = new UserPutResponse { ReturnCode = CreatedCode }; - public static UserPutResponse Modified { get; } = new UserPutResponse { ReturnCode = ModifiedCode }; - - public int ReturnCode { get; set; } - } - - public class UserDeleteResponse - { - public const int SuccessCode = 0; - public const int NotExistsCode = 1; - - public static UserDeleteResponse Success { get; } = new UserDeleteResponse { ReturnCode = SuccessCode }; - public static UserDeleteResponse NotExists { get; } = new UserDeleteResponse { ReturnCode = NotExistsCode }; - - public int ReturnCode { get; set; } - } -} |