1
0
mirror of synced 2024-12-18 17:25:54 +01:00
GC-local-server-rewrite/Application/Game/Card/Management/CardReissueCommand.cs
2023-02-09 23:19:14 +08:00

21 lines
702 B
C#

using Application.Common.Models;
using Application.Interfaces;
using Domain.Enums;
namespace Application.Game.Card.Management;
public record CardReissueCommand(long CardId) : IRequestWrapper<string>;
public class CardReissueCommandHandler : CardRequestHandlerBase<CardReissueCommand, string>
{
public CardReissueCommandHandler(ICardDependencyAggregate aggregate) : base(aggregate)
{
}
public override Task<ServiceResult<string>> Handle(CardReissueCommand request, CancellationToken cancellationToken)
{
// TODO: Support actual reissue
var result = $"{(int)CardReturnCode.NotReissue}";
return Task.FromResult(new ServiceResult<string>(result));
}
}