diff options
author | 杨宇千 <crupest@outlook.com> | 2019-11-07 22:06:06 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-11-07 22:06:06 +0800 |
commit | 2f36e9a1c8d6db2a808f874134c9cb7d57c3ef16 (patch) | |
tree | 48ca95c6eb5dafe44d419bbe5d0ab49396209b13 /Timeline/Models | |
parent | 2852190501ea6636f93d6bc06f8eb4a11cab1077 (diff) | |
download | timeline-2f36e9a1c8d6db2a808f874134c9cb7d57c3ef16.tar.gz timeline-2f36e9a1c8d6db2a808f874134c9cb7d57c3ef16.tar.bz2 timeline-2f36e9a1c8d6db2a808f874134c9cb7d57c3ef16.zip |
Complete PersonalTimelineController and write attribute test.
Diffstat (limited to 'Timeline/Models')
-rw-r--r-- | Timeline/Models/Http/Timeline.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Timeline/Models/Http/Timeline.cs b/Timeline/Models/Http/Timeline.cs index 37de9e58..f676afa0 100644 --- a/Timeline/Models/Http/Timeline.cs +++ b/Timeline/Models/Http/Timeline.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
+using Timeline.Entities;
namespace Timeline.Models.Http
{
@@ -14,6 +15,26 @@ namespace Timeline.Models.Http public DateTime? Time { get; set; }
}
+ public class TimelinePostCreateResponse
+ {
+ public long Id { get; set; }
+
+ public DateTime Time { get; set; }
+ }
+
+ public class TimelinePostDeleteRequest
+ {
+ [Required]
+ public long? Id { get; set; }
+ }
+
+ public class TimelinePropertyChangeRequest
+ {
+ public string? Description { get; set; }
+
+ public TimelineVisibility? Visibility { get; set; }
+ }
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is a DTO class.")]
public class TimelineMemberChangeRequest
{
|