diff options
author | crupest <crupest@outlook.com> | 2020-03-06 22:28:32 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-06 22:28:32 +0800 |
commit | 968140e8aaba398e10585e978aff33d7b32e824a (patch) | |
tree | f7a5aee626f4771a0c75ddc67c0b13b67c472a10 /Timeline/Models/Http/TimelineController.cs | |
parent | eb9554b4fe78eaced12329e7fd7d8d62a58a1c6c (diff) | |
download | timeline-968140e8aaba398e10585e978aff33d7b32e824a.tar.gz timeline-968140e8aaba398e10585e978aff33d7b32e824a.tar.bz2 timeline-968140e8aaba398e10585e978aff33d7b32e824a.zip |
Init development of post image feature.
Diffstat (limited to 'Timeline/Models/Http/TimelineController.cs')
-rw-r--r-- | Timeline/Models/Http/TimelineController.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Timeline/Models/Http/TimelineController.cs b/Timeline/Models/Http/TimelineController.cs index 6d461bb9..ce5f3b98 100644 --- a/Timeline/Models/Http/TimelineController.cs +++ b/Timeline/Models/Http/TimelineController.cs @@ -4,10 +4,17 @@ using Timeline.Models.Validation; namespace Timeline.Models.Http
{
+ public class TimelinePostCreateRequestContent
+ {
+ [Required]
+ public string Type { get; set; } = default!;
+ public string? Text { get; set; }
+ public string? Data { get; set; }
+ }
+
public class TimelinePostCreateRequest
{
- [Required(AllowEmptyStrings = true)]
- public string Content { get; set; } = default!;
+ public TimelinePostCreateRequestContent Content { get; set; } = default!;
public DateTime? Time { get; set; }
}
|