aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http/CommonDataResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'BackEnd/Timeline/Models/Http/CommonDataResponse.cs')
-rw-r--r--BackEnd/Timeline/Models/Http/CommonDataResponse.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Models/Http/CommonDataResponse.cs b/BackEnd/Timeline/Models/Http/CommonDataResponse.cs
new file mode 100644
index 00000000..93605e8c
--- /dev/null
+++ b/BackEnd/Timeline/Models/Http/CommonDataResponse.cs
@@ -0,0 +1,18 @@
+namespace Timeline.Models.Http
+{
+ public class CommonDataResponse<T> : CommonResponse
+ {
+ public CommonDataResponse()
+ {
+
+ }
+
+ public CommonDataResponse(int code, string message, T data)
+ : base(code, message)
+ {
+ Data = data;
+ }
+
+ public T Data { get; set; } = default!;
+ }
+}