package com.jwipc.sys.client.impl;

import com.jwipc.sys.client.KingdeeImageClient;
import com.jwipc.sys.client.convert.KingdeeImageConvert;
import com.jwipc.sys.client.dto.KingdeeImageClientDTO;
import com.jwipc.sys.logic.KingdeeImageLogic;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  影像系统Client服务实现类
 * </p>
 *
 * @author Chen Tianshi
 * @since 2025/12/16 11:49
 */
@Service
@RequiredArgsConstructor
public class KingdeeImageClientImpl implements KingdeeImageClient {
    private final KingdeeImageConvert kingdeeImageConvert;
    private final KingdeeImageLogic kingdeeImageLogic;
    @Override
    public KingdeeImageClientDTO pushImage(KingdeeImageClientDTO pushDTO) {
        return kingdeeImageConvert.dto2ClientDTO(kingdeeImageLogic.pushImage(kingdeeImageConvert.clientDTO2DTO(pushDTO)));
    }
    @Override
    public void deleteAllImage(KingdeeImageClientDTO pushDTO) {
        kingdeeImageLogic.deleteAllImage(kingdeeImageConvert.clientDTO2DTO(pushDTO));
    }
}
