aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/Token.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-04-21 23:23:49 +0800
committercrupest <crupest@outlook.com>2019-04-21 23:23:49 +0800
commit0920d6ca8d8f92e612148aa1d3c4eaea5f407d94 (patch)
treee139e794df8cd20c1cf4f60c668dd1d94bf239e1 /Timeline/Entities/Token.cs
parent748aa44ccaf88686ffbaf9e31d025be24e2d200a (diff)
downloadtimeline-0920d6ca8d8f92e612148aa1d3c4eaea5f407d94.tar.gz
timeline-0920d6ca8d8f92e612148aa1d3c4eaea5f407d94.tar.bz2
timeline-0920d6ca8d8f92e612148aa1d3c4eaea5f407d94.zip
Allow ordinary user to patch his password.
Diffstat (limited to 'Timeline/Entities/Token.cs')
-rw-r--r--Timeline/Entities/Token.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/Timeline/Entities/Token.cs b/Timeline/Entities/Token.cs
new file mode 100644
index 00000000..1b5a469d
--- /dev/null
+++ b/Timeline/Entities/Token.cs
@@ -0,0 +1,26 @@
+namespace Timeline.Entities
+{
+ public class CreateTokenRequest
+ {
+ public string Username { get; set; }
+ public string Password { get; set; }
+ }
+
+ public class CreateTokenResponse
+ {
+ public bool Success { get; set; }
+ public string Token { get; set; }
+ public UserInfo UserInfo { get; set; }
+ }
+
+ public class VerifyTokenRequest
+ {
+ public string Token { get; set; }
+ }
+
+ public class VerifyTokenResponse
+ {
+ public bool IsValid { get; set; }
+ public UserInfo UserInfo { get; set; }
+ }
+}