package com.jwipc.sys.client.impl;

import com.jwipc.api.dto.*;
import com.jwipc.sys.client.ESignClient;
import com.jwipc.sys.logic.ESignLogic;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author shenyang.ou
 * @date 2024/5/10 12:32
 * @desc
 */
@Service
@RequiredArgsConstructor
public class ESignClientImpl implements ESignClient {
    private final ESignLogic eSignLogic;

    @Override
    public String sendFileClient(ESignFileResposeDTO fileResposeDTO, MultipartFile file) {
        return eSignLogic.sendFileClient(fileResposeDTO, file);
    }

    @Override
    public Boolean checkList(Long businessId) {
        return eSignLogic.checkList(businessId);
    }

    @Override
    public ESignOutOrgResult saveOutOrgWithUser(ESignOutOrgParamDTO signBackDTO) {
        return eSignLogic.saveOutOrgWithUser(signBackDTO);
    }
}
