diff options
author | crupest <crupest@outlook.com> | 2021-02-08 21:40:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 21:40:18 +0800 |
commit | 7978a4c8597a152e002516692fedb182a18fcae1 (patch) | |
tree | e021e03cd42eee6fa60b2f9a9d88bd9d2a30df9c /BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs | |
parent | dfbcc4bbbd032ea648b4f42b66080fc0b0261ab3 (diff) | |
parent | 391f82e85d4a31f4a5022a24062083f00d16b3c8 (diff) | |
download | timeline-7978a4c8597a152e002516692fedb182a18fcae1.tar.gz timeline-7978a4c8597a152e002516692fedb182a18fcae1.tar.bz2 timeline-7978a4c8597a152e002516692fedb182a18fcae1.zip |
Merge pull request #245 from crupest/post
Backend: post get and patch.
Diffstat (limited to 'BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs')
-rw-r--r-- | BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs index f4b300a9..12ab407f 100644 --- a/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs +++ b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs @@ -1,4 +1,5 @@ using System.ComponentModel.DataAnnotations;
+using Timeline.Models.Validation;
namespace Timeline.Models.Http
{
@@ -11,6 +12,7 @@ namespace Timeline.Models.Http /// Type of post content.
/// </summary>
[Required]
+ [TimelinePostContentType]
public string Type { get; set; } = default!;
/// <summary>
/// If post is of text type, this is the text.
|