Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Src/Core/F2/BusinessLogic/F2Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ CancellationToken ct
return new()
{
AppCode = F2Constant.AppCode.SUCCESS,
Body = new() { Id = request.TodoTaskListId, Name = list.Name },
Body = new()
{
TodoTaskList = new() { Id = request.TodoTaskListId, Name = list.Name },
},
};
}
}
4 changes: 2 additions & 2 deletions Src/Core/F2/Mapper/F2HttpResponseMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ private static void Init()
{
TodoTaskList = new()
{
Id = appResponse.Body.Id,
Name = appResponse.Body.Name,
Id = appResponse.Body.TodoTaskList.Id,
Name = appResponse.Body.TodoTaskList.Name,
},
},
}
Expand Down
16 changes: 2 additions & 14 deletions Src/Core/F2/Models/F2AppResponseModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,13 @@ public sealed class F2AppResponseModel : IServiceResponse

public sealed class BodyModel
{
public long Id { get; set; }
public TodoTaskListModel TodoTaskList { get; set; }

public string Name { get; set; }

public IEnumerable<TodoTaskModel> TodoTasks { get; set; }

public sealed class TodoTaskModel
public sealed class TodoTaskListModel
{
public long Id { get; set; }

public string Name { get; set; }

public DateTime DueDate { get; set; }

public bool IsInMyDay { get; set; }

public bool IsImportant { get; set; }

public bool IsFinished { get; set; }
}
}
}
17 changes: 0 additions & 17 deletions Src/Core/F2/Presentation/F2Response.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,6 @@ public sealed class TodoTaskListDto
public long Id { get; set; }

public string Name { get; set; }

public IEnumerable<TodoTaskDto> TodoTasks { get; set; }

public sealed class TodoTaskDto
{
public long Id { get; set; }

public string Name { get; set; }

public DateTime DueDate { get; set; }

public bool IsInMyDay { get; set; }

public bool IsImportant { get; set; }

public bool IsFinished { get; set; }
}
}
}
}
Loading