diff options
author | 杨宇千 <crupest@outlook.com> | 2020-02-03 18:38:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 18:38:14 +0800 |
commit | e5fb17ddfc3d1ecf0b283c8cc1a91fb2a2a03236 (patch) | |
tree | 28ef20f9dfe742008bb934f09b99d1d4719cabaa /Timeline/Models/Http/TimelineController.cs | |
parent | 673fa5f0645308bfa8d17dc4e0e145bbaf239329 (diff) | |
parent | 86c4e7834bf25b900af03edc53aea3f37f645334 (diff) | |
download | timeline-e5fb17ddfc3d1ecf0b283c8cc1a91fb2a2a03236.tar.gz timeline-e5fb17ddfc3d1ecf0b283c8cc1a91fb2a2a03236.tar.bz2 timeline-e5fb17ddfc3d1ecf0b283c8cc1a91fb2a2a03236.zip |
Merge pull request #57 from crupest/dev
Add normal timeline feature.
Diffstat (limited to 'Timeline/Models/Http/TimelineController.cs')
-rw-r--r-- | Timeline/Models/Http/TimelineController.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Timeline/Models/Http/TimelineController.cs b/Timeline/Models/Http/TimelineController.cs index f9a4d3e5..6d461bb9 100644 --- a/Timeline/Models/Http/TimelineController.cs +++ b/Timeline/Models/Http/TimelineController.cs @@ -1,5 +1,6 @@ using System;
using System.ComponentModel.DataAnnotations;
+using Timeline.Models.Validation;
namespace Timeline.Models.Http
{
@@ -11,6 +12,13 @@ namespace Timeline.Models.Http public DateTime? Time { get; set; }
}
+ public class TimelineCreateRequest
+ {
+ [Required]
+ [TimelineName]
+ public string Name { get; set; } = default!;
+ }
+
public class TimelinePatchRequest
{
public string? Description { get; set; }
|