diff options
author | crupest <crupest@outlook.com> | 2020-03-11 18:38:22 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-11 18:38:22 +0800 |
commit | 57c9da7f6bc98fb70e26f5332ffccfd55f7eb69b (patch) | |
tree | 4a2c53d6c5e7f90c88ea287302d01a5d87b730fc /Timeline/Models/Http/ErrorResponse.cs | |
parent | 53b237832d3d967b531a8dc130ebbf2ede173741 (diff) | |
download | timeline-57c9da7f6bc98fb70e26f5332ffccfd55f7eb69b.tar.gz timeline-57c9da7f6bc98fb70e26f5332ffccfd55f7eb69b.tar.bz2 timeline-57c9da7f6bc98fb70e26f5332ffccfd55f7eb69b.zip |
...
Diffstat (limited to 'Timeline/Models/Http/ErrorResponse.cs')
-rw-r--r-- | Timeline/Models/Http/ErrorResponse.cs | 10 |
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));
|