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

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.order.inner.model.dto.PayCountryDTO;
import com.red.circle.other.infra.database.rds.entity.user.reigon.RegionRelation;
import com.red.circle.other.inner.model.dto.sys.SysPayCountryDTO;
import com.red.circle.other.inner.model.dto.user.reigon.RegionRelationDTO;
import java.util.List;
import java.util.Map;
import org.mapstruct.Mapper;

/**
 * @author pengliang on 2023/8/20
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface RegionRelationInnerConvertor {

  List<RegionRelationDTO> toListRegionRelationDTO(List<RegionRelation> regionRelations);

  RegionRelationDTO toRegionRelationDTO(RegionRelation regionRelation);

  Map<Long, SysPayCountryDTO> toMapSysPayCountryDTO(Map<Long, PayCountryDTO> map);
}
