aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/Http/Common.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-07-23 17:11:59 +0800
committer杨宇千 <crupest@outlook.com>2019-07-23 17:11:59 +0800
commit79d4c444ace7cb10fbd638936c2e47a6314d2758 (patch)
tree8fcf9bdeaccac760dca563b04691bf7f0be07453 /Timeline/Entities/Http/Common.cs
parent6191dbfdfa4f048e2f5a78729b49c8cf8a654ae3 (diff)
downloadtimeline-79d4c444ace7cb10fbd638936c2e47a6314d2758.tar.gz
timeline-79d4c444ace7cb10fbd638936c2e47a6314d2758.tar.bz2
timeline-79d4c444ace7cb10fbd638936c2e47a6314d2758.zip
WIP: Rewrite TokenController.
Diffstat (limited to 'Timeline/Entities/Http/Common.cs')
-rw-r--r--Timeline/Entities/Http/Common.cs22
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; }
}
}