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

import com.xunhong.erp.turbo.api.infra.dto.cmd.PlatformCreateCmd;
import com.xunhong.erp.turbo.api.infra.dto.cmd.PlatformUpdateCmd;
import com.xunhong.erp.turbo.infra.domain.entity.Platform;
import com.xunhong.erp.turbo.infra.infrastructure.entity.PlatformDO;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;

/**
 * @author shenyifei
 */
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface PlatformConvert {

	Platform toPlatform(PlatformDO platformDO);

	PlatformDO toPlatformDO(PlatformCreateCmd platformCreateCmd);

	PlatformDO toPlatformDO(PlatformUpdateCmd platformUpdateCmd);
}
