1
0
mirror of synced 2024-11-12 00:40:51 +01:00

Add stub for writewmusic

This commit is contained in:
asesidaa 2023-11-09 02:46:24 +08:00
parent 22eff77e88
commit bd2cb39b63

View File

@ -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");
} }