aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-11-04 22:58:24 +0800
committer杨宇千 <crupest@outlook.com>2019-11-04 22:58:24 +0800
commit9df5a86786ac2dcb8bc0f34f69501abfffd0dc9c (patch)
tree7a0401d6ba88cdab6e87f9a3ff1b2d5a7c0c1edb /Timeline/Models
parentedfc86d84da81fcabc00bb27e875f26038bf94f7 (diff)
downloadtimeline-9df5a86786ac2dcb8bc0f34f69501abfffd0dc9c.tar.gz
timeline-9df5a86786ac2dcb8bc0f34f69501abfffd0dc9c.tar.bz2
timeline-9df5a86786ac2dcb8bc0f34f69501abfffd0dc9c.zip
Add controller primarily and of course redesign the service accordingly.
Diffstat (limited to 'Timeline/Models')
-rw-r--r--Timeline/Models/Http/Timeline.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Timeline/Models/Http/Timeline.cs b/Timeline/Models/Http/Timeline.cs
new file mode 100644
index 00000000..37de9e58
--- /dev/null
+++ b/Timeline/Models/Http/Timeline.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace Timeline.Models.Http
+{
+ public class TimelinePostCreateRequest
+ {
+ [Required(AllowEmptyStrings = false)]
+ public string Content { get; set; } = default!;
+
+ public DateTime? Time { get; set; }
+ }
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is a DTO class.")]
+ public class TimelineMemberChangeRequest
+ {
+ public List<string>? Add { get; set; }
+
+ public List<string>? Remove { get; set; }
+ }
+}