SocialNetworks/demo/target/test-classes/templates/converter.java.vm
changyunju 07a9210749 取消360px
Signed-off-by: changyunju <2743319061@qq.com>
2025-06-25 15:57:45 +08:00

30 lines
849 B
Plaintext

package ${package.Parent}.converter;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${package.Parent}.model.dto.${entity}DTO;
import ${package.Parent}.model.entity.${entity};
import ${package.Parent}.model.vo.${entity}PageVO;
import ${package.Parent}.model.form.${entity}Form;
import ${package.Parent}.model.bo.${entity}BO;
/**
* $!{table.comment}转换器
*
* @author ${author}
* @since ${date}
*/
@Mapper(componentModel = "spring")
public interface ${entity}Converter{
${entity}PageVO bo2PageVo(${entity}BO bo);
Page<${entity}PageVO> bo2PageVo(Page<${entity}BO> bo);
${entity}Form entity2Form(${entity} entity);
@InheritInverseConfiguration(name = "entity2Form")
${entity} form2Entity(${entity}Form entity);
}