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 | 7f88e120aba0f218641084aca4f467ffd27981d9 (patch) | |
tree | 54b320b4f236ae55895f32a64dbbc61d0022c835 /BackEnd/Timeline/Models/Http | |
parent | 607460b87376be19d9117cdd7be11883410d8691 (diff) | |
download | timeline-7f88e120aba0f218641084aca4f467ffd27981d9.tar.gz timeline-7f88e120aba0f218641084aca4f467ffd27981d9.tar.bz2 timeline-7f88e120aba0f218641084aca4f467ffd27981d9.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Models/Http')
-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()
|