diff options
author | 杨宇千 <crupest@outlook.com> | 2019-04-11 21:13:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-11 21:13:15 +0800 |
commit | 19cae15eba2bcede41b818e1b8ab7fd5ac92eb05 (patch) | |
tree | 34118752ae3015a26c0f6f3a02b3043806ce895a /Timeline/Entities | |
parent | 5b5ca3acb1b9decb5ad13798dc79ba2d58f2ce95 (diff) | |
parent | 63573d7c988e0bc1b7e82eeea53ecc3678b0a2f5 (diff) | |
download | timeline-19cae15eba2bcede41b818e1b8ab7fd5ac92eb05.tar.gz timeline-19cae15eba2bcede41b818e1b8ab7fd5ac92eb05.tar.bz2 timeline-19cae15eba2bcede41b818e1b8ab7fd5ac92eb05.zip |
Merge pull request #19 from crupest/18-createtoken
Change create token api.
Diffstat (limited to 'Timeline/Entities')
-rw-r--r-- | Timeline/Entities/Token.cs | 26 |
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; } + } +} |