From ac769e656b122ff569c3f1534701b71e00fed586 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 27 Oct 2020 19:21:35 +0800 Subject: Split front and back end. --- Timeline.ErrorCodes/ErrorCodes.cs | 66 --------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 Timeline.ErrorCodes/ErrorCodes.cs (limited to 'Timeline.ErrorCodes/ErrorCodes.cs') diff --git a/Timeline.ErrorCodes/ErrorCodes.cs b/Timeline.ErrorCodes/ErrorCodes.cs deleted file mode 100644 index 91e0c1fd..00000000 --- a/Timeline.ErrorCodes/ErrorCodes.cs +++ /dev/null @@ -1,66 +0,0 @@ -namespace Timeline.Models.Http -{ - /// - /// All error code constants. - /// - /// - /// Format: 1bbbccdd - /// - public static class ErrorCodes - { - public static class Common - { - public const int InvalidModel = 1_000_0001; - public const int Forbid = 1_000_0002; - public const int UnknownEndpoint = 1_000_0003; - - public static class Header - { - public const int IfNonMatch_BadFormat = 1_000_01_01; - } - - public static class Content - { - public const int TooBig = 1_000_11_01; - } - } - - public static class UserCommon - { - public const int NotExist = 1_001_0001; - } - - public static class TokenController - { - public const int Create_BadCredential = 1_101_01_01; - public const int Verify_BadFormat = 1_101_02_01; - public const int Verify_UserNotExist = 1_101_02_02; - public const int Verify_OldVersion = 1_101_02_03; - public const int Verify_TimeExpired = 1_101_02_04; - } - - public static class UserController - { - public const int UsernameConflict = 1_102_01_01; - public const int ChangePassword_BadOldPassword = 1_102_02_01; - } - - public static class UserAvatar - { - public const int BadFormat_CantDecode = 1_103_00_01; - public const int BadFormat_UnmatchedFormat = 1_103_00_02; - public const int BadFormat_BadSize = 1_103_00_03; - } - - public static class TimelineController - { - public const int NameConflict = 1_104_01_01; - public const int NotExist = 1_104_02_01; - public const int MemberPut_NotExist = 1_104_03_01; - public const int QueryRelateNotExist = 1_104_04_01; - public const int PostNotExist = 1_104_05_01; - public const int PostNoData = 1_104_05_02; - } - } -} - -- cgit v1.2.3