24 lines
510 B
Java
24 lines
510 B
Java
|
|
package com.senmesh.sfile.convert;
|
||
|
|
|
||
|
|
import com.senmesh.sfile.dto.FileRiskCreateDTO;
|
||
|
|
import com.senmesh.sfile.dto.FileRiskDTO;
|
||
|
|
import com.senmesh.sfile.entity.FileRisk;
|
||
|
|
import org.mapstruct.Mapper;
|
||
|
|
import org.mapstruct.factory.Mappers;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 文件风险转换器
|
||
|
|
*/
|
||
|
|
@Mapper
|
||
|
|
public interface FileRiskConvert {
|
||
|
|
|
||
|
|
FileRiskConvert INSTANCE = Mappers.getMapper(FileRiskConvert.class);
|
||
|
|
|
||
|
|
FileRisk toEntity(FileRiskDTO dto);
|
||
|
|
|
||
|
|
FileRiskDTO toDto(FileRisk entity);
|
||
|
|
|
||
|
|
FileRisk toEntity(FileRiskCreateDTO dto);
|
||
|
|
}
|
||
|
|
|