package com.dk.mdm.infrastructure.convert.mst; import com.dk.common.model.vo.core.StaffEntity; import com.dk.mdm.model.pojo.mst.Staff; import com.dk.mdm.model.response.mst.StaffResponse; import com.dk.mdm.model.vo.mst.StaffVO; import org.mapstruct.Mapper; /** * @desc : Staff转换类 * @author : admin * @date : 2023/1/9 10:37 */ @Mapper(componentModel = "spring") public interface StaffConvert { /** * @desc : 转换vo为pojo * @author : admin * @date : 2023/1/9 10:37 */ Staff convertToPo(StaffVO staffVO); /** * @desc : 转换pojo为Entity * * @author : admin * @date : 2023/1/9 10:37 */ StaffEntity convertToEntity(StaffResponse staff); }