diff options
author | crupest <crupest@outlook.com> | 2021-04-30 17:00:45 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-30 17:00:45 +0800 |
commit | 9f81ec1d4a54239ae9456923115f4a1e379d9e71 (patch) | |
tree | 8737e2ab17d227a21e3ac6c590b45fb6dcf522b1 /BackEnd/Timeline/Models/Http/CommonDataResponse.cs | |
parent | a672e10faad434899d81ef9d0d0d5adbbc7841da (diff) | |
download | timeline-9f81ec1d4a54239ae9456923115f4a1e379d9e71.tar.gz timeline-9f81ec1d4a54239ae9456923115f4a1e379d9e71.tar.bz2 timeline-9f81ec1d4a54239ae9456923115f4a1e379d9e71.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Models/Http/CommonDataResponse.cs')
-rw-r--r-- | BackEnd/Timeline/Models/Http/CommonDataResponse.cs | 18 |
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!;
+ }
+}
|