aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-03-11 18:38:22 +0800
committercrupest <crupest@outlook.com>2020-03-11 18:38:22 +0800
commit2945aaf506a351cda89bc552aa1bcb734055438d (patch)
tree4a2c53d6c5e7f90c88ea287302d01a5d87b730fc /Timeline/Models
parent27ed44bb8c618e4b30de5cec44bbb47be8084539 (diff)
downloadtimeline-2945aaf506a351cda89bc552aa1bcb734055438d.tar.gz
timeline-2945aaf506a351cda89bc552aa1bcb734055438d.tar.bz2
timeline-2945aaf506a351cda89bc552aa1bcb734055438d.zip
...
Diffstat (limited to 'Timeline/Models')
-rw-r--r--Timeline/Models/Http/ErrorResponse.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Timeline/Models/Http/ErrorResponse.cs b/Timeline/Models/Http/ErrorResponse.cs
index 9c5a7cfe..bb9c44df 100644
--- a/Timeline/Models/Http/ErrorResponse.cs
+++ b/Timeline/Models/Http/ErrorResponse.cs
@@ -285,6 +285,16 @@ namespace Timeline.Models.Http
return new CommonResponse(ErrorCodes.TimelineController.QueryRelateNotExist, string.Format(message, formatArgs));
}
+ public static CommonResponse PostNotExist(params object?[] formatArgs)
+ {
+ return new CommonResponse(ErrorCodes.TimelineController.PostNotExist, string.Format(TimelineController_PostNotExist, formatArgs));
+ }
+
+ public static CommonResponse CustomMessage_PostNotExist(string message, params object?[] formatArgs)
+ {
+ return new CommonResponse(ErrorCodes.TimelineController.PostNotExist, string.Format(message, formatArgs));
+ }
+
public static CommonResponse PostNoData(params object?[] formatArgs)
{
return new CommonResponse(ErrorCodes.TimelineController.PostNoData, string.Format(TimelineController_PostNoData, formatArgs));