com.brihaspathee.zeus.service.impl.TransactionOrigServiceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of file-mgmt-service Show documentation
Show all versions of file-mgmt-service Show documentation
Service that intakes all the files that are received
The newest version!
package com.brihaspathee.zeus.service.impl;
import com.brihaspathee.zeus.dto.transaction.FileDetailDto;
import com.brihaspathee.zeus.service.interfaces.FileTransmissionService;
import com.brihaspathee.zeus.service.interfaces.TransactionOrigService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
/**
* Created in Intellij IDEA
* User: Balaji Varadharajan
* Date: 21, June 2022
* Time: 3:52 PM
* Project: Zeus
* Package Name: com.brihaspathee.zeus.service.impl
* To change this template use File | Settings | File and Code Template
*/
@Slf4j
@Service
@RequiredArgsConstructor
public class TransactionOrigServiceImpl implements TransactionOrigService {
@Value("${url.host.transaction-orig-service}")
private String transOrigHost;
private final FileTransmissionService fileTransmissionService;
@Override
public void postFileDetails(FileDetailDto fileDetailDto) {
fileTransmissionService.postFileDetails(transOrigHost + "/api/v1/trans-orig",fileDetailDto);
}
}