-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: partially fixed endpoint routes.
- Loading branch information
1 parent
7f018f6
commit cc244a2
Showing
15 changed files
with
103 additions
and
28 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...RS/ArtEventManagement/Application/ArtEvents/Queries/GetArtEventsByHobbyistQueryHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using MediatR; | ||
using PERUSTARS.ArtEventManagement.Domain.Model.Queries; | ||
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories; | ||
using PERUSTARS.ArtEventManagement.Interfaces.REST.Resources; | ||
using PERUSTARS.ProfileManagement.Domain.Repositories; | ||
|
||
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Queries; | ||
|
||
public class GetArtEventsByHobbyistQueryHandler: IRequestHandler<GetArtEventsByHobbyistQuery, IEnumerable<ArtEventResource>> | ||
{ | ||
private readonly IArtEventRepository _artEventRepository; | ||
private readonly IParticipantRepository _participantRepository; | ||
private readonly IHobbyistRepository _hobbyistRepository; | ||
|
||
public Task<IEnumerable<ArtEventResource>> Handle(GetArtEventsByHobbyistQuery request, CancellationToken cancellationToken) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
PERUSTARS/PERUSTARS/ArtEventManagement/Domain/Model/Queries/GetArtEventsByHobbyistQuery.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Collections.Generic; | ||
using MediatR; | ||
using PERUSTARS.ArtEventManagement.Interfaces.REST.Resources; | ||
|
||
namespace PERUSTARS.ArtEventManagement.Domain.Model.Queries; | ||
|
||
public class GetArtEventsByHobbyistQuery: IRequest<IEnumerable<ArtEventResource>> | ||
{ | ||
public long HobbyistId { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
PERUSTARS/PERUSTARS/ArtEventManagement/Interfaces/REST/Resources/ArtEventResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using PERUSTARS.ArtEventManagement.Domain.Model.Aggregates; | ||
using PERUSTARS.ArtEventManagement.Domain.Model.ValueObjects; | ||
using PERUSTARS.ProfileManagement.Domain.Model.Aggregates; | ||
|
||
namespace PERUSTARS.ArtEventManagement.Interfaces.REST.Resources; | ||
|
||
public class ArtEventResource | ||
{ | ||
public long? Id { get; set; } | ||
public string Title { get; set; } | ||
public string Description { get; set; } | ||
public DateTime? StartDateTime { get; set; } | ||
public Location Location { get; set; } | ||
public bool? IsOnline { get; set; } | ||
public long? ArtistId { get; set; } | ||
public string? CurrentStatus { get; set; } | ||
public IEnumerable<Participant> Participants { get; set; } | ||
public bool Collected { get; set; } | ||
} |
2 changes: 1 addition & 1 deletion
2
...ces/Resources/RegisterArtEventResource.cs → ...EST/Resources/RegisterArtEventResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
PERUSTARS/PERUSTARS/ArtEventManagement/Interfaces/REST/Resources/UpdateArtEventResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using PERUSTARS.ArtEventManagement.Domain.Model.ValueObjects; | ||
|
||
namespace PERUSTARS.ArtEventManagement.Interfaces.REST.Resources; | ||
|
||
public class UpdateArtEventResource | ||
{ | ||
public int id { get; set; } | ||
public string title { get; set; } | ||
public string description { get; set; } | ||
public Location location { get; set; } | ||
public bool isOnline { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.