package com.jwipc.sys.client.convert;

import com.jwipc.api.dto.ESignFileResposeDTO;
import com.jwipc.sys.client.dto.FileResposeCDTO;
import com.jwipc.sys.client.dto.FileResposePreviewCDTO;
import com.jwipc.sys.dto.FileResposeDTO;
import com.jwipc.sys.dto.FileResposePreviewDTO;
import com.jwipc.sys.entity.Attachment;
import org.mapstruct.Mapper;

import java.util.List;


@Mapper(componentModel = "spring")
public interface FileClientConvert {
    FileResposeCDTO entity2DTO(Attachment byId);

    List<FileResposeCDTO> entities2DTOs(List<Attachment> byId);


    FileResposeCDTO covert(FileResposeDTO forDownload);

    List<FileResposePreviewCDTO> convert2(List<FileResposePreviewDTO> previewUrl);

    FileResposeCDTO fileResposeDTO2CDTO(FileResposeDTO fileResposeDTO);

    ESignFileResposeDTO fileResposeDTO2ESignDTO(FileResposeDTO fileResposeDTO);
}
