2023-02-16 09:53:02 +01:00
|
|
|
|
using Domain.Entities;
|
2023-02-12 18:46:08 +01:00
|
|
|
|
using Riok.Mapperly.Abstractions;
|
|
|
|
|
|
|
|
|
|
namespace Application.Mappers;
|
|
|
|
|
|
|
|
|
|
[Mapper]
|
|
|
|
|
public static partial class CardDetailMapper
|
|
|
|
|
{
|
|
|
|
|
public static partial CardDetailDto CardDetailToDto(this CardDetail cardDetail);
|
2023-02-13 17:38:19 +01:00
|
|
|
|
|
|
|
|
|
public static partial CardDetail DtoToCardDetail(this CardDetailDto dto);
|
2023-02-16 17:38:01 +01:00
|
|
|
|
|
|
|
|
|
[MapperIgnoreSource(nameof(FirstPlayOptionDto.CardId))]
|
|
|
|
|
[MapProperty(nameof(FirstPlayOptionDto.AvatarId), nameof(CardDetail.ScoreI1))]
|
|
|
|
|
[MapProperty(nameof(FirstPlayOptionDto.TitleId), nameof(CardDetail.Fcol2))]
|
|
|
|
|
[MapProperty(nameof(FirstPlayOptionDto.ShowFastSlowOption), nameof(CardDetail.ScoreUi1))]
|
|
|
|
|
[MapProperty(nameof(FirstPlayOptionDto.ShowFeverTranceOption), nameof(CardDetail.ScoreUi2))]
|
|
|
|
|
public static partial void MapFirstOptionDetail(this FirstPlayOptionDto dto, CardDetail detail);
|
|
|
|
|
|
|
|
|
|
[MapperIgnoreSource(nameof(SecondPlayOptionDto.CardId))]
|
|
|
|
|
[MapProperty(nameof(SecondPlayOptionDto.NavigatorId), nameof(CardDetail.ScoreI1))]
|
|
|
|
|
public static partial void MapSecondOptionDetail(this SecondPlayOptionDto dto, CardDetail detail);
|
|
|
|
|
|
|
|
|
|
[MapProperty(nameof(CardDetail.ScoreI1), nameof(FirstPlayOptionDto.AvatarId))]
|
|
|
|
|
[MapProperty(nameof(CardDetail.Fcol2), nameof(FirstPlayOptionDto.TitleId))]
|
|
|
|
|
[MapProperty(nameof(CardDetail.ScoreUi1), nameof(FirstPlayOptionDto.ShowFastSlowOption))]
|
|
|
|
|
[MapProperty(nameof(CardDetail.ScoreUi2), nameof(FirstPlayOptionDto.ShowFeverTranceOption))]
|
|
|
|
|
public static partial FirstPlayOptionDto CardDetailToFirstOption(this CardDetail detail);
|
|
|
|
|
|
|
|
|
|
[MapProperty(nameof(CardDetail.ScoreI1), nameof(SecondPlayOptionDto.NavigatorId))]
|
|
|
|
|
public static partial SecondPlayOptionDto CardDetailToSecondOption(this CardDetail detail);
|
|
|
|
|
|
2023-02-12 18:46:08 +01:00
|
|
|
|
}
|