aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-04-11 20:11:23 +0800
committercrupest <crupest@outlook.com>2019-04-11 20:11:23 +0800
commitf562660f52ce055e243b937a988f04c90ad3ae55 (patch)
tree49dc35791778a4ed1403319708046ac8823210b6 /Timeline/Entities
parent1eb6d9abfc24eec380b7b5d7423102a53041239e (diff)
downloadtimeline-f562660f52ce055e243b937a988f04c90ad3ae55.tar.gz
timeline-f562660f52ce055e243b937a988f04c90ad3ae55.tar.bz2
timeline-f562660f52ce055e243b937a988f04c90ad3ae55.zip
Change create token api.
Diffstat (limited to 'Timeline/Entities')
-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..ce5b92ff
--- /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 TokenValidationRequest
+ {
+ public string Token { get; set; }
+ }
+
+ public class TokenValidationResponse
+ {
+ public bool IsValid { get; set; }
+ public UserInfo UserInfo { get; set; }
+ }
+}