2023-02-16 09:53:02 +01:00
|
|
|
|
namespace Application.Game.Card.Management;
|
2023-02-09 16:19:14 +01:00
|
|
|
|
|
|
|
|
|
public record CardReissueCommand(long CardId) : IRequestWrapper<string>;
|
|
|
|
|
|
2023-02-16 17:38:01 +01:00
|
|
|
|
public class ReissueCommandHandler : RequestHandlerBase<CardReissueCommand, string>
|
2023-02-09 16:19:14 +01:00
|
|
|
|
{
|
2023-02-16 17:38:01 +01:00
|
|
|
|
public ReissueCommandHandler(ICardDependencyAggregate aggregate) : base(aggregate)
|
2023-02-09 16:19:14 +01:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override Task<ServiceResult<string>> Handle(CardReissueCommand request, CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
// TODO: Support actual reissue
|
2023-02-11 18:09:29 +01:00
|
|
|
|
return Task.FromResult(ServiceResult.Failed<string>(ServiceError.NotReissue));
|
2023-02-09 16:19:14 +01:00
|
|
|
|
}
|
|
|
|
|
}
|