package com.red.circle.other.infra.convertor;

import com.red.circle.other.domain.rocket.RocketRewardLog;
import com.red.circle.other.infra.database.rds.entity.RocketRewardClaimLogEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * 火箭奖励领取记录转换器
 *
 * @author system
 * @date 2025-01-15
 */
@Mapper(componentModel = "spring")
public interface RocketRewardLogConvertor {

    RocketRewardLogConvertor INSTANCE = Mappers.getMapper(RocketRewardLogConvertor.class);

    /**
     * Entity转Domain
     */
    RocketRewardLog toDomain(RocketRewardClaimLogEntity entity);

    /**
     * Domain转Entity
     */
    RocketRewardClaimLogEntity toEntity(RocketRewardLog log);
}
