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