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.WeekCpValueCount;
import com.red.circle.other.infra.database.rds.entity.user.user.CpApply;
import com.red.circle.other.infra.database.rds.entity.user.user.CpRelationship;
import com.red.circle.other.inner.model.dto.user.CpRelationshipDTO;
import com.red.circle.other.inner.model.dto.user.UserCpApplyDTO;
import com.red.circle.other.inner.model.dto.user.WeekCpValueCountDTO;
import java.util.List;
import org.mapstruct.Mapper;

/**
 * @author pengliang on 2023/10/17
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface UserCpInnerConvertor {

  CpRelationshipDTO toCpRelationshipDTO(CpRelationship cpRelationship);

  List<CpRelationshipDTO> toListCpRelationshipDTO(List<CpRelationship> cpRelationships);

  WeekCpValueCountDTO toWeekCpValueCountDTO(WeekCpValueCount weekCpValueCount);

  List<WeekCpValueCountDTO> toListWeekCpValueCountDTO(List<WeekCpValueCount> weekCpValueCounts);

  UserCpApplyDTO toUserCpApplyDTO(CpApply cpApply);

}
