refactor: 문서중개자 API URL properties 경로 변경

dev
gitea-관리자 1 year ago
parent c9c7cf48a2
commit 0df0ed89e5

@ -47,9 +47,9 @@ import org.springframework.transaction.annotation.Transactional;
public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMmsService {
private static final int MAX_KT_SEND_CNT = 100;
@Value("${contract.kt.api.dp-callback-url}")
@Value("${app.contract.kt.api.dp-callback-url}")
private String DP_CALLBACK_URL;
@Value("${contract.kt.api.me-callback-url}")
@Value("${app.contract.kt.api.me-callback-url}")
private String ME_CALLBACK_URL;
private final IKtMmsService ktMmsService;

@ -37,10 +37,10 @@ import org.springframework.stereotype.Service;
@RequiredArgsConstructor
@Service
public class EpostService extends EgovAbstractServiceImpl implements IEpostService {
@Value("${contract.epost.host}")
@Value("${app.contract.epost.host}")
private String HOST;
@Value("${contract.epost.api.postTrackInfo}")
@Value("${app.contract.epost.api.postTrackInfo}")
private String POST_TRACK_INFO;
private final ApiWebClientUtil webClient;

@ -60,7 +60,7 @@ import org.springframework.stereotype.Component;
public class AsyncKkopayEltrcDocService extends EgovAbstractServiceImpl implements
IAsyncKkopayEltrcDocService {
@Value("${contract.kakao.host}")
@Value("${app.contract.kakao.host}")
private String HOST;
@Value("#{'${contract.kakao.api.send}'.split(';')}")
private String[] API_SEND;

@ -60,7 +60,7 @@ import org.springframework.stereotype.Component;
public class KkopayEltrcDocService extends EgovAbstractServiceImpl implements
IKkopayEltrcDocService {
@Value("${contract.kakao.host}")
@Value("${app.contract.kakao.host}")
private String HOST;
@Value("#{'${contract.kakao.api.send}'.split(';')}")
private String[] API_SEND;

@ -62,7 +62,7 @@ import org.springframework.stereotype.Service;
@RequiredArgsConstructor
@Service
public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsService {
@Value("${contract.kt.host}")
@Value("${app.contract.kt.host}")
private String HOST;
//-----------------------------------------------------------------
// mens 사용 API
@ -70,22 +70,22 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
/**
*
*/
@Value("${contract.kt.api.generate-token}")
@Value("${app.contract.kt.api.generate-token}")
private String API_GENERATE_TOKEN;
/**
* : BC-AG-SN-002
*/
@Value("${contract.kt.api.main-send}")
@Value("${app.contract.kt.api.main-send}")
private String API_MAIN_SEND;
/**
* : BC-AG-SN-008
*/
@Value("${contract.kt.api.cfm-token}")
@Value("${app.contract.kt.api.cfm-token}")
private String API_CFM_TOKEN;
/**
* : BC-AG-SN-009
*/
@Value("${contract.kt.api.read-token}")
@Value("${app.contract.kt.api.read-token}")
private String API_READ_TOKEN;
//-----------------------------------------------------------
@ -97,62 +97,62 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
/**
* : BC-AG-SN-001
*/
@Value("${contract.kt.api.before-send}")
@Value("${app.contract.kt.api.before-send}")
private String API_BEFORE_SEND;
/**
* : BC-AG-SN-007
*/
@Value("${contract.kt.api.blacklist}")
@Value("${app.contract.kt.api.blacklist}")
private String API_BLACKLIST;
/**
* : BC-AG-SN-011
*/
@Value("${contract.kt.api.send-sttc}")
@Value("${app.contract.kt.api.send-sttc}")
private String API_SEND_STTC;
/**
* : BC-AG-SN-012
*/
@Value("${contract.kt.api.send-sttcdtl}")
@Value("${app.contract.kt.api.send-sttcdtl}")
private String API_SEND_STTCDTL;
/**
* whitelist : BC-AG-SN-013
*/
@Value("${contract.kt.api.whitelist}")
@Value("${app.contract.kt.api.whitelist}")
private String API_WHITELIST;
/**
* : BC-AG-SM-001
*/
@Value("${contract.kt.api.cerf-acmd}")
@Value("${app.contract.kt.api.cerf-acmd}")
private String API_CERF_ACMD;
/**
* : BC-AG-SM-002
*/
@Value("${contract.kt.api.exca-token}")
@Value("${app.contract.kt.api.exca-token}")
private String API_EXCA_ACMD;
/**
* : BC-AG-EC-001
*/
@Value("${contract.kt.api.exca}")
@Value("${app.contract.kt.api.exca}")
private String API_EXCA;
/**
* : BC-AG-HS-001
*/
@Value("${contract.kt.api.info-acmd}")
@Value("${app.contract.kt.api.info-acmd}")
private String API_INFO_ACMD;
/**
* : BC-AG-HS-002
*/
@Value("${contract.kt.api.cfm-acmd}")
@Value("${app.contract.kt.api.cfm-acmd}")
private String API_CFM_ACMD;
/**
* : BC-AG-SN-014
*/
@Value("${contract.kt.api.refuse-rcv}")
@Value("${app.contract.kt.api.refuse-rcv}")
private String API_REFUSE_RCV;
/**
* : BC-AG-SN-015
*/
@Value("${contract.kt.api.approve-rcv}")
@Value("${app.contract.kt.api.approve-rcv}")
private String API_APPROVE_RCV;
private final ApiWebClientUtil webClient;

@ -46,17 +46,17 @@ import org.springframework.util.Base64Utils;
@Service
public class NiceCiService extends EgovAbstractServiceImpl implements INiceCiService {
@Value("${contract.nice.host}")
@Value("${app.contract.nice.host}")
private String HOST;
@Value("${contract.nice.api.generate-token}")
@Value("${app.contract.nice.api.generate-token}")
private String API_GENERATE_TOKEN;
@Value("${contract.nice.api.revoke-token}")
@Value("${app.contract.nice.api.revoke-token}")
private String API_REVOKE_TOKEN;
@Value("${contract.nice.api.publickey}")
@Value("${app.contract.nice.api.publickey}")
private String API_PUBLICKEY;
@Value("${contract.nice.api.symmetrickey}")
@Value("${app.contract.nice.api.symmetrickey}")
private String API_SYMMETRICKEY;
@Value("${contract.nice.api.ci}")
@Value("${app.contract.nice.api.ci}")
private String API_CI;
private static final String AUTH_TYPE_BASIC = "Basic";

@ -52,13 +52,13 @@ public class PplusService extends EgovAbstractServiceImpl implements IPplusServi
@Value("${file.cmm.temp-path}")
private String FILE_TEMP_PATH;
@Value("${contract.pplus.host}")
@Value("${app.contract.pplus.host}")
private String HOST;
@Value("${contract.pplus.api.accept}")
@Value("${app.contract.pplus.api.accept}")
private String ACCEPT;
@Value("${contract.pplus.api.status}")
@Value("${app.contract.pplus.api.status}")
private String STATUS;
private final ApiWebClientUtil webClient;

@ -36,9 +36,9 @@ import org.springframework.transaction.annotation.Transactional;
@RequiredArgsConstructor
@Service
public class EnsBatchMakeService extends EgovAbstractServiceImpl implements IEnsBatchMakeService {
@Value("${contract.kt.api.dp-callback-url}")
@Value("${app.contract.kt.api.dp-callback-url}")
private String DP_CALLBACK_URL;
@Value("${contract.kt.api.me-callback-url}")
@Value("${app.contract.kt.api.me-callback-url}")
private String ME_CALLBACK_URL;
private static final String SNDNG_PROCESS_STTUS = "sndngProcessSttus";

@ -65,19 +65,19 @@ import org.springframework.transaction.annotation.Transactional;
@RequiredArgsConstructor
@Service
public class EnsBatchSendService extends EgovAbstractServiceImpl implements IEnsBatchSendService {
@Value("${contract.host}")
@Value("${app.contract.host}")
private String apiHost;
@Value("${contract.kakao.api.bulksend}")
@Value("${app.contract.kakao.api.bulksend}")
private String apiKkoBulkSend;
@Value("${contract.kt.api.bulksend}")
@Value("${app.contract.kt.api.bulksend}")
private String apiKtBcBulkSend;
@Value("${contract.pplus.api.bulksend}")
@Value("${app.contract.pplus.api.bulksend}")
private String apiPplusBulkSend;
@Value("${contract.kakao.bulk-max-cnt}")
@Value("${app.contract.kakao.bulk-max-cnt}")
private int bulkKkoMaxCnt;
@Value("${contract.kt.bulk-max-cnt}")
@Value("${app.contract.kt.bulk-max-cnt}")
private int bulkKtMaxCnt;
private static final String SNDNG_PROCESS_STTUS = "sndngProcessSttus";

@ -58,16 +58,16 @@ import org.springframework.transaction.annotation.Transactional;
@RequiredArgsConstructor
@Service
public class EnsBatchStatusService extends EgovAbstractServiceImpl implements IEnsBatchStatusService {
@Value("${contract.host}")
@Value("${app.contract.host}")
private String apiHost;
@Value("${contract.kakao.api.bulkstatus}")
@Value("${app.contract.kakao.api.bulkstatus}")
private String apiKkoBulkStatus;
@Value("${contract.pplus.api.bulkstatus}")
@Value("${app.contract.pplus.api.bulkstatus}")
private String apiPplusBulkStatus;
@Value("${contract.epost.api.trace}")
@Value("${app.contract.epost.api.trace}")
private String apiEpostTrace;
@Value("${contract.kakao.bulk-max-cnt}")
@Value("${app.contract.kakao.bulk-max-cnt}")
private int bulkKkoMaxCnt;
private static final String UNITY_SNDNG_MST_ID = "unitySndngMastrId";

@ -41,11 +41,11 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/batch/ens/test/v1")
public class ApiCallTestController {
@Value("${contract.host}")
@Value("${app.contract.host}")
private String apiHost;
@Value("${contract.kakao.api.bulksend}")
@Value("${app.contract.kakao.api.bulksend}")
private String apiBulkSend;
@Value("${contract.kakao.api.bulkstatus}")
@Value("${app.contract.kakao.api.bulkstatus}")
private String apiBulkStatus;
private final ApiWebClientUtil apiWebClient;

@ -1,32 +1,39 @@
#-----------------------------------------------------------------------
# application 설정 : batch -> api
#-----------------------------------------------------------------------
contract:
# milisecond
host: http://localhost:8081
connection:
timeout: 30000
readTimeout: 30000
thread:
# 동시 실행 스레드 개수
corePoolSize: 5
# 스레드 풀에서 사용할 수 있는 최대 개수
maxPoolSize: 10
kakao:
bulk-max-cnt: 10
api:
bulksend: /api/ens/kakao/v1/documents/bulk
bulkstatus: /api/ens/kakao/v1/documents/bulk/status
kt:
bulk-max-cnt: 10
api:
bulksend: /api/ens/kt/v1/mainSend
bulkstatus: /api/ens/kt/v1/messageResult
pplus:
api:
bulksend: /api/ens/pplus/v1/accept
bulkstatus: /api/ens/pplus/v1/status
epost:
api:
trace: /api/ens/epost/v1/trace
app:
contract:
# milisecond
host: http://localhost:8081
connection:
timeout: 30000
readTimeout: 30000
thread:
# 동시 실행 스레드 개수
corePoolSize: 5
# 스레드 풀에서 사용할 수 있는 최대 개수
maxPoolSize: 10
kakao:
bulk-max-cnt: 10
api:
bulksend: /api/ens/kakao/v1/documents/bulk
bulkstatus: /api/ens/kakao/v1/documents/bulk/status
kt:
bulk-max-cnt: 10
api:
bulksend: /api/ens/kt/v1/mainSend
bulkstatus: /api/ens/kt/v1/messageResult
pplus:
api:
bulksend: /api/ens/pplus/v1/accept
bulkstatus: /api/ens/pplus/v1/status
epost:
api:
trace: /api/ens/epost/v1/trace
# 배치 설정
batch:
# 배치 실행 주기
period:
# 전송 주기 : day|hour
send: day

@ -35,10 +35,10 @@ import kr.xit.core.spring.config.support.CustomAsyncExceptionHandler;
@EnableAsync
public class AsyncExecutorConfig extends AsyncConfigurerSupport {
@Value("${contract.connection.thread.corePoolSize:5}")
@Value("${app.contract.connection.thread.corePoolSize:5}")
private int corePoolSize;
@Value("${contract.connection.thread.maxPoolSize:10}")
@Value("${app.contract.connection.thread.maxPoolSize:10}")
private int maxPoolSize;
/**

@ -59,9 +59,9 @@ import reactor.netty.transport.logging.AdvancedByteBufFormat;
@Configuration
public class WebClientConfig {
@Value("${contract.connection.timeout:5000}")
@Value("${app.contract.connection.timeout:5000}")
private int connectTimeout;
@Value("${contract.connection.readTimeout:5000}")
@Value("${app.contract.connection.readTimeout:5000}")
private int readTimeout;
private final ObjectMapper objectMapper;

Loading…
Cancel
Save