package com.eksad.masterdata.controller; import com.eksad.masterdata.common.dto.UnpaidDPHLOPullParamDTO; import com.eksad.masterdata.service.UnpaidHLOHystrixService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import java.text.ParseException; @RestController @Slf4j public class UnpaidHLORestController { @Autowired UnpaidHLOHystrixService service; @RequestMapping(value = "dgi-api/v1/unpaidhlo/read", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<Object> UnpaidDPHLOApigateway(@RequestBody UnpaidDPHLOPullParamDTO paramDTO) throws ParseException { return service.getUnpaidHLO(paramDTO); } }