feat: sisul API

dev
gitea-관리자 1 year ago
parent 678eec102b
commit bfc9a450f9

@ -132,10 +132,10 @@ public class PplusService extends EgovAbstractServiceImpl implements IPplusServi
final Map<String,String> headerMap = new HashMap<>(); final Map<String,String> headerMap = new HashMap<>();
headerMap.put(HttpHeaders.CONTENT_TYPE, MediaType.MULTIPART_FORM_DATA_VALUE); headerMap.put(HttpHeaders.CONTENT_TYPE, MediaType.MULTIPART_FORM_DATA_VALUE);
return webClient.exchange( return webClient.exchangeFormData(
HOST + STATUS, HOST + STATUS,
HttpMethod.POST, HttpMethod.POST,
JsonUtils.toJson(reqDTO), reqDTO,
PpStatusResponse.class, PpStatusResponse.class,
headerMap headerMap
); );

@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import kr.xit.biz.ens.model.cmm.SndngMssageParam; import kr.xit.biz.ens.model.cmm.SndngMssageParam;
import kr.xit.biz.ens.model.pplus.PplusDTO.PpCommonResponse; import kr.xit.biz.ens.model.pplus.PplusDTO.PpCommonResponse;
import kr.xit.biz.ens.model.pplus.PplusDTO.PpStatusRequest; import kr.xit.biz.ens.model.pplus.PplusDTO.PpStatusRequest;
import kr.xit.biz.ens.model.pplus.PplusDTO.PpStatusResponse;
import kr.xit.core.model.ApiResponseDTO; import kr.xit.core.model.ApiResponseDTO;
import kr.xit.core.model.IApiResponse; import kr.xit.core.model.IApiResponse;
import kr.xit.ens.pplus.service.IPplusService; import kr.xit.ens.pplus.service.IPplusService;
@ -71,7 +72,7 @@ public class PplusController {
@Operation(summary = "우편제작 상태 조회", description = "우편제작상태조회") @Operation(summary = "우편제작 상태 조회", description = "우편제작상태조회")
@PostMapping(value = "/status", produces = MediaType.APPLICATION_JSON_VALUE) @PostMapping(value = "/status", produces = MediaType.APPLICATION_JSON_VALUE)
public IApiResponse status(@RequestBody final PpStatusRequest paramDTO) { public IApiResponse status(@RequestBody final PpStatusRequest paramDTO) {
service.statusBulks(paramDTO); PpStatusResponse resDTO = service.statusBulks(paramDTO);
return ApiResponseDTO.success(service.statusBulks(paramDTO)); return ApiResponseDTO.success(resDTO);
} }
} }

Loading…
Cancel
Save