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

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.other.infra.database.rds.entity.user.user.UserActivityRewardReceiveRecord;
import com.red.circle.other.inner.model.cmd.user.UserActivityRewardReceiveRecordCmd;
import com.red.circle.other.inner.model.dto.user.UserActivityRewardReceiveRecordDTO;
import java.util.List;
import org.mapstruct.Mapper;

/**
 * @author pengliang on 2023/6/6
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface UserActivityInfraConvertor {

  List<UserActivityRewardReceiveRecordDTO> toUserActivityRewardReceiveRecordDTO(
      List<UserActivityRewardReceiveRecord> userActivityRewardReceiveRecord);

  UserActivityRewardReceiveRecord toUserActivityRewardReceiveRecord(
      UserActivityRewardReceiveRecordCmd cmd);

  UserActivityRewardReceiveRecordDTO toUserActivityRewardReceiveRecordDTO(
      UserActivityRewardReceiveRecord userActivityRewardReceiveRecord);
}
