package com.red.circle.other.app.inner.convertor.user;


import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.other.infra.database.mongo.entity.user.count.WeekFriendshipCardCount;
import com.red.circle.other.infra.database.rds.entity.user.user.UserSubscription;
import com.red.circle.other.inner.model.dto.user.UserSubscriptionDTO;
import com.red.circle.other.inner.model.dto.user.WeekFriendshipCardCountDTO;
import java.util.List;
import org.mapstruct.Mapper;

/**
 * @author pengliang on 2023/5/22
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface UserSubscriptionInnerConvertor {

  UserSubscriptionDTO toUserSubscriptionDTO(UserSubscription cmd);

  List<WeekFriendshipCardCountDTO> toWeekFriendshipCardCountDTO(
      List<WeekFriendshipCardCount> weekFriendshipCardCount);
}
