diff options
author | crupest <crupest@outlook.com> | 2021-01-31 15:42:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-01-31 15:42:52 +0800 |
commit | 415a91f08422a9a18958552ec21a25f336ef81c4 (patch) | |
tree | 629e3603b421f3e5c777de5974608be9ff9c485e /BackEnd/Timeline/Models/Http/TimelineController.cs | |
parent | 07ffcc6029158a2cee1e30250d0153dccccb13d0 (diff) | |
download | timeline-415a91f08422a9a18958552ec21a25f336ef81c4.tar.gz timeline-415a91f08422a9a18958552ec21a25f336ef81c4.tar.bz2 timeline-415a91f08422a9a18958552ec21a25f336ef81c4.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Models/Http/TimelineController.cs')
-rw-r--r-- | BackEnd/Timeline/Models/Http/TimelineController.cs | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/BackEnd/Timeline/Models/Http/TimelineController.cs b/BackEnd/Timeline/Models/Http/TimelineController.cs index 257076f0..79be1826 100644 --- a/BackEnd/Timeline/Models/Http/TimelineController.cs +++ b/BackEnd/Timeline/Models/Http/TimelineController.cs @@ -59,6 +59,12 @@ namespace Timeline.Models.Http public class HttpTimelinePatchRequest
{
/// <summary>
+ /// New name. Null for not change.
+ /// </summary>
+ [TimelineName]
+ public string? Name { get; set; }
+
+ /// <summary>
/// New title. Null for not change.
/// </summary>
public string? Title { get; set; }
@@ -74,25 +80,6 @@ namespace Timeline.Models.Http public TimelineVisibility? Visibility { get; set; }
}
- /// <summary>
- /// Change timeline name request model.
- /// </summary>
- public class HttpTimelineChangeNameRequest
- {
- /// <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!;
- }
-
public class HttpTimelineControllerAutoMapperProfile : Profile
{
public HttpTimelineControllerAutoMapperProfile()
|