package com.xunhong.erp.turbo.user.app.assembler;

import com.xunhong.erp.turbo.api.user.dto.vo.EmployeeVO;
import com.xunhong.erp.turbo.user.domain.entity.Employee;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.NullValueCheckStrategy;

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

	@Mapping(target = "roleIdList", ignore = true)
	EmployeeVO toEmployeeVO(Employee employee);
}
