refactor: 패키지 정리

dev
gitea-관리자 1 year ago
parent 01b9b73e58
commit 601d2d4b0c

@ -1,4 +1,4 @@
package kr.xit.ens.cmm.mapper;
package kr.xit.biz.cmm.mapper;
import kr.xit.biz.ens.model.nice.NiceCiDTO.CrtfInfo;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
@ -8,7 +8,7 @@ import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
* description : mapper
* - cache: CaffeineCache use
*
* packageName : kr.xit.ens.cmm.mapper
* packageName : kr.xit.biz.cmm.mapper
* fileName : ICmmEnsMapper
* author : limju
* date : 2023-09-12

@ -1,9 +1,9 @@
package kr.xit.ens.cmm.service;
package kr.xit.biz.cmm.service;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.stats.CacheStats;
import kr.xit.biz.cmm.mapper.ICmmEnsMapper;
import kr.xit.biz.ens.model.nice.NiceCiDTO.CrtfInfo;
import kr.xit.ens.cmm.mapper.ICmmEnsMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.CacheManager;

@ -1,4 +1,4 @@
package kr.xit.ens.cmm.service;
package kr.xit.biz.cmm.service;
import kr.xit.biz.ens.model.nice.NiceCiDTO.CrtfInfo;
@ -6,7 +6,7 @@ import kr.xit.biz.ens.model.nice.NiceCiDTO.CrtfInfo;
* <pre>
* description : CaffeineCache
*
* packageName : kr.xit.ens.cmm.service
* packageName : kr.xit.biz.cmm.service
* fileName : ICmmEnsCacheService
* author : limju
* date : 2023-09-12

@ -22,6 +22,8 @@ import javax.crypto.NoSuchPaddingException;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import kr.xit.biz.cmm.mapper.ICmmEnsMapper;
import kr.xit.biz.cmm.service.CmmEnsCacheService;
import kr.xit.biz.ens.model.nice.NiceCiDTO.CrtfInfo;
import kr.xit.biz.ens.model.nice.NiceCiDTO.PublickeyReqDataBody;
import kr.xit.biz.ens.model.nice.NiceCiDTO.PublickeyRequest;
@ -42,14 +44,11 @@ import kr.xit.core.spring.util.ApiWebClientUtil;
import kr.xit.core.support.utils.DateUtils;
import kr.xit.core.support.utils.JsonUtils;
import kr.xit.core.support.utils.UUIDGenerateUtils;
import kr.xit.ens.cmm.mapper.ICmmEnsMapper;
import kr.xit.ens.cmm.service.CmmEnsCacheService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ObjectUtils;
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.CacheManager;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;

@ -1,24 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.ens.support.cmm.mapper.ICmmEnsMapper">
<mapper namespace="kr.xit.biz.cmm.mapper.ICmmEnsMapper">
<select id="selectNiceCrtfInfo" resultType="kr.xit.biz.ens.model.nice.NiceCiDTO$CrtfInfo">
/** ens-cmm-mysql-mapper|selectNiceCrtfInfo-Nice인증정보조회|julim */
SELECT signgu_code,
ffnlg_code,
client_id,
client_secret,
product_id,
access_token,
expires_in,
token_type,
scope,
site_code,
key_version,
public_key,
valid_dtim,
timestampdiff(DAY, now(), '20230911235959') AS remainingDays /* 잔여일수-공용키 */
SELECT signgu_code, /* 시군구코드 */
ffnlg_code, /* 과태료코드 */
client_id, /* nice client id */
client_secret, /* app security code */
product_id, /* 상품 코드 */
access_token, /* access token */
expires_in, /* access token 만료일시(초)*/
token_type, /* token type */
scope, /* token scope */
site_code, /* 공개키 사이트 코드 */
key_version, /* 공개키 버전 */
public_key, /* 공개키 */
valid_dtim, /* 공개키 만료일시 */
cur_symkey_version, /* 현재 대칭키 버전 */
cur_symkey_valid_dtim, /* 현재 대칭키 만료일시 */
cur_symkey_key, /* 현재 대칭키 - key */
cur_symkey_iv, /* 현재 대칭키 - iv */
cur_symkey_hmac_key, /* 현재 대칭키 - hmac_key */
bef_symkey_version, /* 이전 대칭키 버전 */
bef_symkey_valid_dtim, /* 이전 대칭키 만료일시 */
bef_symkey_key, /* 이전 대칭키 - key */
bef_symkey_iv, /* 이전 대칭키 - iv */
bef_symkey_hmac_key, /* 이전 대칭키 - hmac_key */
timestampdiff(DAY, now(), valid_dtim) AS remainingDays /* 잔여일수-공용키 */
FROM tb_cmm_nice_instn_crtf_info
WHERE signgu_code = #{signguCode}
AND ffnlg_code = #{ffnlgCode}
@ -39,4 +49,24 @@
AND client_id = #{clientId}
</update>
<update id="updateNiceCrtfSymkey">
/** ens-cmm-mysql-mapper|updateNiceCrtfSymkey-Nice symkey 인증정보 갱신|julim */
UPDATE tb_cmm_nice_instn_crtf_info
SET cur_symkey_version = #{curSymkeyVersion},
cur_symkey_valid_dtim = #{curSymkeyValidDtim},
cur_symkey_key = #{curSymkeyKey},
cur_symkey_iv = #{curSymkeyIv},
cur_symkey_hmac_key = #{curSymkeyHmacKey},
bef_symkey_version = #{befSymkeyVersion},
bef_symkey_valid_dtim = #{befSymkeyValidDtim},
bef_symkey_key = #{befSymkeyKey},
bef_symkey_iv = #{befSymkeyIv},
bef_symkey_hmac_key = #{befSymkeyHmacKey},
updt_dt = now(),
updusr = #{updusr}
WHERE signgu_code = #{signguCode}
AND ffnlg_code = #{ffnlgCode}
AND client_id = #{clientId}
</update>
</mapper>

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.biz.ens.mapper.IKkoMyDocMapper">
<mapper namespace="kr.xit.biz.kakao.mapper.IKkoMyDocMapper">
<select id="selectMobilePage" resultType="kr.xit.biz.ens.model.KkoMyDocDTO$MobilePageManage">
<select id="selectMobilePage" resultType="kr.xit.biz.kakao.model.KkoMyDocDTO$MobilePageManage">
/** ens-mysql-mapper|selectMobilePage-모바일페이지콘텐트조회|julim */
SELECT tempm.sndng_detail_id
, tempm.sndng_se_code

@ -1,3 +1,5 @@
#------------------------------------------------
# API \uBA54\uC138\uC9C0 \uC815\uC758
#------------------------------------------------
fail.api.nice.crtfInfo=NICE \uC778\uC99D \uC815\uBCF4\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
fail.api.nice.revoke.token=\uD1A0\uD070(NICE) \uD3D0\uAE30\uC5D0 \uC2E4\uD574\uD558\uC600\uC2B5\uB2C8\uB2E4

Loading…
Cancel
Save