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

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.other.infra.database.rds.entity.activity.PropsActivityRuleConfig;
import com.red.circle.other.inner.model.dto.activity.props.ActivityPropsRule;
import com.red.circle.other.inner.model.dto.activity.props.ActivityPropsRuleDTO;
import java.util.Map;
import org.mapstruct.Mapper;

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

  ActivityPropsRule toActivityPropsRule(PropsActivityRuleConfig config);

  Map<Long, ActivityPropsRuleDTO> toActivityPropsRuleDTO(
      Map<Long, PropsActivityRuleConfig> ruleConfig);
}
