Add stub for writewmusic
This commit is contained in:
parent
22eff77e88
commit
bd2cb39b63
@ -72,7 +72,7 @@ public class CardController : BaseController<CardController>
|
|||||||
await Mediator.Send(new WriteItemCommand(request.CardId, request.Data)),
|
await Mediator.Send(new WriteItemCommand(request.CardId, request.Data)),
|
||||||
CardRequestType.WriteTitle => await Mediator.Send(new WriteTitleCommand(request.CardId,
|
CardRequestType.WriteTitle => await Mediator.Send(new WriteTitleCommand(request.CardId,
|
||||||
request.Data)),
|
request.Data)),
|
||||||
CardRequestType.WriteMusicDetail => await Mediator.Send(
|
CardRequestType.WriteMusicDetail or CardRequestType.WriteWMusicDetail => await Mediator.Send(
|
||||||
new WriteMusicDetailCommand(request.CardId, request.Data)),
|
new WriteMusicDetailCommand(request.CardId, request.Data)),
|
||||||
CardRequestType.WriteNavigator => await Mediator.Send(
|
CardRequestType.WriteNavigator => await Mediator.Send(
|
||||||
new WriteNavigatorCommand(request.CardId, request.Data)),
|
new WriteNavigatorCommand(request.CardId, request.Data)),
|
||||||
@ -103,6 +103,7 @@ public class CardController : BaseController<CardController>
|
|||||||
result = await Mediator.Send(new CardReissueCommand(request.CardId));
|
result = await Mediator.Send(new CardReissueCommand(request.CardId));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Logger.LogWarning("Unimplemented: {CardCommandType}, data is {Data}", cardCommandType, request.Data);
|
||||||
throw new ArgumentOutOfRangeException(nameof(cardCommandType), cardCommandType, "Should not happen");
|
throw new ArgumentOutOfRangeException(nameof(cardCommandType), cardCommandType, "Should not happen");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user