diff options
author | 杨宇千 <crupest@outlook.com> | 2019-07-23 17:11:59 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-07-23 17:11:59 +0800 |
commit | 1e5ac670386614b2d88da0af198a6b3df004f1dd (patch) | |
tree | 8fcf9bdeaccac760dca563b04691bf7f0be07453 /Timeline/Entities/Http/Common.cs | |
parent | d088a03986713a71e274fc16144ca42b7f020e3f (diff) | |
download | timeline-1e5ac670386614b2d88da0af198a6b3df004f1dd.tar.gz timeline-1e5ac670386614b2d88da0af198a6b3df004f1dd.tar.bz2 timeline-1e5ac670386614b2d88da0af198a6b3df004f1dd.zip |
WIP: Rewrite TokenController.
Diffstat (limited to 'Timeline/Entities/Http/Common.cs')
-rw-r--r-- | Timeline/Entities/Http/Common.cs | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/Timeline/Entities/Http/Common.cs b/Timeline/Entities/Http/Common.cs index 9575e6fa..7708927a 100644 --- a/Timeline/Entities/Http/Common.cs +++ b/Timeline/Entities/Http/Common.cs @@ -1,29 +1,19 @@ namespace Timeline.Entities.Http { - public class ReturnCodeMessageResponse + public class CommonErrorResponse { - public ReturnCodeMessageResponse() + public CommonErrorResponse() { } - public ReturnCodeMessageResponse(int code) + public CommonErrorResponse(int code, string message) { - ReturnCode = code; - } - - public ReturnCodeMessageResponse(string message) - { - Message = message; - } - - public ReturnCodeMessageResponse(int code, string message) - { - ReturnCode = code; + Code = code; Message = message; } - public int? ReturnCode { get; set; } = null; - public string Message { get; set; } = null; + public int Code { get; set; } + public string Message { get; set; } } } |