diff options
author | crupest <crupest@outlook.com> | 2020-08-28 00:01:04 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-28 00:01:04 +0800 |
commit | 12410a51fb2e5f55e8d83415bc3c4053a146ce3b (patch) | |
tree | 920ef556df34e0d69d990f8bf3ef2fdce13f9f46 /Timeline/Models | |
parent | c10dc9e221317ea39f9ce0f172670ffbe94e6f8a (diff) | |
download | timeline-12410a51fb2e5f55e8d83415bc3c4053a146ce3b.tar.gz timeline-12410a51fb2e5f55e8d83415bc3c4053a146ce3b.tar.bz2 timeline-12410a51fb2e5f55e8d83415bc3c4053a146ce3b.zip |
Add change timeline name api to timeline controller.
Diffstat (limited to 'Timeline/Models')
-rw-r--r-- | Timeline/Models/Http/TimelineController.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Timeline/Models/Http/TimelineController.cs b/Timeline/Models/Http/TimelineController.cs index 95bae3e6..7bd141ed 100644 --- a/Timeline/Models/Http/TimelineController.cs +++ b/Timeline/Models/Http/TimelineController.cs @@ -71,4 +71,23 @@ namespace Timeline.Models.Http /// </summary>
public TimelineVisibility? Visibility { get; set; }
}
+
+ /// <summary>
+ /// Change timeline name request model.
+ /// </summary>
+ public class TimelineChangeNameRequest
+ {
+ /// <summary>
+ /// Old name of timeline.
+ /// </summary>
+ [Required]
+ [TimelineName]
+ public string OldName { get; set; } = default!;
+ /// <summary>
+ /// New name of timeline.
+ /// </summary>
+ [Required]
+ [TimelineName]
+ public string NewName { get; set; } = default!;
+ }
}
|