Skip to content

Commit c3e55d5

Browse files
refactor: move dtos to demothings namespace
1 parent fa5eeb7 commit c3e55d5

17 files changed

Lines changed: 34 additions & 29 deletions

File tree

src/1-Libraries/Application/Dtos/CreateDemoThingDto.cs renamed to src/1-Libraries/Application/Dtos/DemoThings/CreateDemoThingDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using CanBeYours.Core.Resources;
44
using CodeBlock.DevKit.Core.Resources;
55

6-
namespace CanBeYours.Application.Dtos;
6+
namespace CanBeYours.Application.Dtos.DemoThings;
77

88
/// <summary>
99
/// Data Transfer Object for creating a new DemoThing entity.

src/1-Libraries/Application/Dtos/GetDemoThingDto.cs renamed to src/1-Libraries/Application/Dtos/DemoThings/GetDemoThingDto.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using CanBeYours.Core.Domain.DemoThings;
22
using CodeBlock.DevKit.Contracts.Dtos;
33

4-
namespace CanBeYours.Application.Dtos;
4+
namespace CanBeYours.Application.Dtos.DemoThings;
55

66
/// <summary>
77
/// Data Transfer Object for retrieving DemoThing entity data.
@@ -16,23 +16,23 @@ public class GetDemoThingDto : GetEntityDto
1616
/// The name of the demo thing for display purposes.
1717
/// </summary>
1818
public string Name { get; set; }
19-
19+
2020
/// <summary>
2121
/// The description of the demo thing for display purposes.
2222
/// </summary>
2323
public string Description { get; set; }
24-
24+
2525
/// <summary>
2626
/// The type/category of the demo thing.
2727
/// </summary>
2828
public DemoThingType Type { get; set; }
29-
29+
3030
/// <summary>
3131
/// The email address of the user who owns this demo thing.
3232
/// This is populated by the service layer for display purposes.
3333
/// </summary>
3434
public string UserEmail { get; set; }
35-
35+
3636
/// <summary>
3737
/// The unique identifier of the user who owns this demo thing.
3838
/// </summary>

src/1-Libraries/Application/Dtos/SearchDemoThingsInputDto.cs renamed to src/1-Libraries/Application/Dtos/DemoThings/SearchDemoThingsInputDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using CanBeYours.Core.Domain.DemoThings;
22
using CodeBlock.DevKit.Contracts.Dtos;
33

4-
namespace CanBeYours.Application.Dtos;
4+
namespace CanBeYours.Application.Dtos.DemoThings;
55

66
/// <summary>
77
/// Data Transfer Object for search input parameters when searching DemoThing entities.

src/1-Libraries/Application/Dtos/UpdateDemoThingDto.cs renamed to src/1-Libraries/Application/Dtos/DemoThings/UpdateDemoThingDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using CanBeYours.Core.Resources;
44
using CodeBlock.DevKit.Core.Resources;
55

6-
namespace CanBeYours.Application.Dtos;
6+
namespace CanBeYours.Application.Dtos.DemoThings;
77

88
/// <summary>
99
/// Data Transfer Object for updating an existing DemoThing entity.

src/1-Libraries/Application/Services/DemoThings/DemoThingService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CanBeYours.Application.Dtos;
1+
using CanBeYours.Application.Dtos.DemoThings;
22
using CanBeYours.Application.UseCases.DemoThings.CreateDemoThing;
33
using CanBeYours.Application.UseCases.DemoThings.GetDemoThing;
44
using CanBeYours.Application.UseCases.DemoThings.SearchDemoThings;

src/1-Libraries/Application/Services/DemoThings/IDemoThingService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CanBeYours.Application.Dtos;
1+
using CanBeYours.Application.Dtos.DemoThings;
22
using CodeBlock.DevKit.Contracts.Dtos;
33
using CodeBlock.DevKit.Core.Helpers;
44

@@ -19,22 +19,22 @@ public interface IDemoThingService
1919
/// <param name="id">The unique identifier of the demo thing</param>
2020
/// <returns>A result containing the demo thing data or an error</returns>
2121
Task<Result<GetDemoThingDto>> GetDemoThing(string id);
22-
22+
2323
/// <summary>
2424
/// Creates a new demo thing with the specified data.
2525
/// </summary>
2626
/// <param name="input">The data for creating the new demo thing</param>
2727
/// <returns>A result containing the command execution result or an error</returns>
2828
Task<Result<CommandResult>> CreateDemoThing(CreateDemoThingDto input);
29-
29+
3030
/// <summary>
3131
/// Updates an existing demo thing with new data.
3232
/// </summary>
3333
/// <param name="id">The unique identifier of the demo thing to update</param>
3434
/// <param name="input">The new data for the demo thing</param>
3535
/// <returns>A result containing the command execution result or an error</returns>
3636
Task<Result<CommandResult>> UpdateDemoThing(string id, UpdateDemoThingDto input);
37-
37+
3838
/// <summary>
3939
/// Searches for demo things based on specified criteria.
4040
/// </summary>

src/1-Libraries/Application/UseCases/DemoThings/GetDemoThing/GetDemoThingRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CanBeYours.Application.Dtos;
1+
using CanBeYours.Application.Dtos.DemoThings;
22
using CodeBlock.DevKit.Application.Queries;
33
using CodeBlock.DevKit.Core.Helpers;
44

src/1-Libraries/Application/UseCases/DemoThings/GetDemoThing/GetDemoThingUseCase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using AutoMapper;
2-
using CanBeYours.Application.Dtos;
2+
using CanBeYours.Application.Dtos.DemoThings;
33
using CanBeYours.Application.Exceptions;
44
using CanBeYours.Application.Helpers;
55
using CanBeYours.Core.Domain.DemoThings;

src/1-Libraries/Application/UseCases/DemoThings/SearchDemoThings/SearchDemoThingsRequest.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CanBeYours.Application.Dtos;
1+
using CanBeYours.Application.Dtos.DemoThings;
22
using CanBeYours.Core.Domain.DemoThings;
33
using CodeBlock.DevKit.Application.Queries;
44
using CodeBlock.DevKit.Contracts.Dtos;
@@ -54,32 +54,32 @@ public SearchDemoThingsRequest(
5454
/// Optional filter by demo thing type. When null, all types are included in the search.
5555
/// </summary>
5656
public DemoThingType? Type { get; }
57-
57+
5858
/// <summary>
5959
/// The sort order for the search results.
6060
/// </summary>
6161
public SortOrder SortOrder { get; }
62-
62+
6363
/// <summary>
6464
/// The search term for filtering by name, description, or user information.
6565
/// </summary>
6666
public string Term { get; }
67-
67+
6868
/// <summary>
6969
/// The number of records to return per page.
7070
/// </summary>
7171
public int RecordsPerPage { get; }
72-
72+
7373
/// <summary>
7474
/// The page number for pagination (1-based).
7575
/// </summary>
7676
public int PageNumber { get; }
77-
77+
7878
/// <summary>
7979
/// Optional start date for filtering by creation date.
8080
/// </summary>
8181
public DateTime? FromDateTime { get; }
82-
82+
8383
/// <summary>
8484
/// Optional end date for filtering by creation date.
8585
/// </summary>

src/1-Libraries/Application/UseCases/DemoThings/SearchDemoThings/SearchDemoThingsUseCase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using AutoMapper;
2-
using CanBeYours.Application.Dtos;
2+
using CanBeYours.Application.Dtos.DemoThings;
33
using CanBeYours.Core.Domain.DemoThings;
44
using CodeBlock.DevKit.Application.Queries;
55
using CodeBlock.DevKit.Contracts.Dtos;

0 commit comments

Comments
 (0)