From 968140e8aaba398e10585e978aff33d7b32e824a Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 6 Mar 2020 22:28:32 +0800 Subject: Init development of post image feature. --- Timeline/Models/Http/TimelineController.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Timeline/Models/Http/TimelineController.cs') 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; } } -- cgit v1.2.3