aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/ErrorCodes.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-30 16:52:55 +0800
committercrupest <crupest@outlook.com>2021-04-30 16:52:55 +0800
commit88002173a1155883d1fb46683a9a7ad1f521eb56 (patch)
tree742cce92b6e424d7bcd4a51a8da63dd10e18c4c7 /BackEnd/Timeline/ErrorCodes.cs
parentbf4c48980f81e566065c07f3fe534ce7551ebdcc (diff)
downloadtimeline-88002173a1155883d1fb46683a9a7ad1f521eb56.tar.gz
timeline-88002173a1155883d1fb46683a9a7ad1f521eb56.tar.bz2
timeline-88002173a1155883d1fb46683a9a7ad1f521eb56.zip
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/ErrorCodes.cs')
-rw-r--r--BackEnd/Timeline/ErrorCodes.cs24
1 files changed, 16 insertions, 8 deletions
diff --git a/BackEnd/Timeline/ErrorCodes.cs b/BackEnd/Timeline/ErrorCodes.cs
index 87d451f2..06952822 100644
--- a/BackEnd/Timeline/ErrorCodes.cs
+++ b/BackEnd/Timeline/ErrorCodes.cs
@@ -1,4 +1,4 @@
-namespace Timeline.Models.Http
+namespace Timeline
{
/// <summary>
/// All error code constants.
@@ -36,9 +36,22 @@
}
}
- public static class UserCommon
+ public static class NotExist
{
- public const int NotExist = 1_001_0001;
+ public const int Default = 2_001_00_00;
+ public const int User = 2_001_00_01;
+ public const int Timeline = 2_001_00_02;
+ public const int TimelinePost = 2_001_00_03;
+ public const int TimelinePostData = 2_001_00_04;
+ }
+
+ public static class Conflict
+ {
+ public const int Default = 2_002_00_00;
+ public const int User = 2_002_00_01;
+ public const int Timeline = 2_002_00_02;
+ public const int TimelinePost = 2_002_00_03;
+ public const int TimelinePostData = 2_002_00_04;
}
public static class TokenController
@@ -52,7 +65,6 @@
public static class UserController
{
- public const int UsernameConflict = 1_102_01_01;
public const int ChangePassword_BadOldPassword = 1_102_02_01;
public const int ChangePermission_RootUser = 1_102_03_01;
public const int Delete_RootUser = 1_102_04_01;
@@ -67,11 +79,7 @@
public static class TimelineController
{
- public const int NameConflict = 1_104_01_01;
- public const int NotExist = 1_104_02_01;
public const int QueryRelateNotExist = 1_104_04_01;
- public const int PostNotExist = 1_104_05_01;
- public const int PostDataNotExist = 1_104_05_02;
}
public static class HighlightTimelineController