package com.gkhy.testFourierSpecialGasMonitor.api.controller.attachment.converter;
|
|
import com.gkhy.testFourierSpecialGasMonitor.api.controller.attachment.dto.resp.AttachmentApiRespDTO;
|
import com.gkhy.testFourierSpecialGasMonitor.application.attachment.service.dto.resp.AttachmentAppRespDTO;
|
import org.springframework.beans.BeanUtils;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* @email 1603559716@qq.com
|
* @author: zf
|
* @date: 2023/5/7
|
* @time: 16:55
|
*/
|
@Component
|
public class AttachmentApiConverter {
|
|
public AttachmentApiRespDTO getApiRespDTO(AttachmentAppRespDTO appRespDTO){
|
if (appRespDTO == null){
|
return null;
|
}
|
AttachmentApiRespDTO attachmentApiRespDTO = new AttachmentApiRespDTO();
|
BeanUtils.copyProperties(appRespDTO,attachmentApiRespDTO);
|
return attachmentApiRespDTO;
|
}
|
|
|
|
}
|