diff options
author | crupest <crupest@outlook.com> | 2019-02-14 23:05:04 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-02-14 23:05:04 +0800 |
commit | 7024bc9666e62cc33f651e7a060235d17bd51f25 (patch) | |
tree | b9762a15e83391d8b7b4d76aa76f125557bb0e51 /Timeline/Entities/User.cs | |
parent | 44645b381ffe399e444444cc0011287d4e09fd7e (diff) | |
download | timeline-7024bc9666e62cc33f651e7a060235d17bd51f25.tar.gz timeline-7024bc9666e62cc33f651e7a060235d17bd51f25.tar.bz2 timeline-7024bc9666e62cc33f651e7a060235d17bd51f25.zip |
Develop user token interface.
Diffstat (limited to 'Timeline/Entities/User.cs')
-rw-r--r-- | Timeline/Entities/User.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Timeline/Entities/User.cs b/Timeline/Entities/User.cs index 3f7e9ac6..50463b57 100644 --- a/Timeline/Entities/User.cs +++ b/Timeline/Entities/User.cs @@ -11,5 +11,20 @@ namespace Timeline.Entities public string Username { get; set; } public string Password { get; set; } public string[] Roles { get; set; } + + public UserInfo GetUserInfo() + { + return new UserInfo + { + Username = this.Username, + Roles = this.Roles + }; + } + } + + public class UserInfo + { + public string Username { get; set; } + public string[] Roles { get; set; } } } |