package com.xunhong.erp.turbo.infra.infrastructure.convert;

import com.xunhong.erp.turbo.api.infra.dto.cmd.ChannelCreateCmd;
import com.xunhong.erp.turbo.api.infra.dto.cmd.ChannelUpdateCmd;
import com.xunhong.erp.turbo.infra.domain.entity.Channel;
import com.xunhong.erp.turbo.infra.infrastructure.entity.ChannelDO;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;

@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface ChannelConvert {
	Channel toChannel(ChannelDO channelDO);

	ChannelDO toChannelDO(ChannelCreateCmd channelCreateCmd);

	ChannelDO toChannelDO(ChannelUpdateCmd channelUpdateCmd);
}
