package com.jwipc.sys.convert;

import com.jwipc.api.dto.ESignFileResposeDTO;
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 FileConvert {
    FileResposeDTO entity2DTO(Attachment one);

    List<FileResposeDTO> entity2DTOList(List<Attachment> attachments);

    FileResposeDTO toClientDto(FileResposeDTO fileResposeDTO);

    List<FileResposePreviewDTO> entity2DTOList1(List<Attachment> attachments);

    ESignFileResposeDTO toESignDto(FileResposeDTO fileResposeDTO);
}
