feat: 카카오톡 추가 반영 - accept

main
Jonguk. Lim 2 months ago
parent 14d7a58c37
commit cdcdad84f3

@ -0,0 +1,68 @@
package cokr.xit.ens.modules.kkotalk.code;
import cokr.xit.ens.modules.common.code.*;
import lombok.*;
/**
* <ul>
* <li> : </li>
* <li> : </li>
* <li>: 2021. 11. 23. 5:10:35
* </ul>
*
* @author
*/
@RequiredArgsConstructor
public enum KkoTalkStatusCd implements IntgrnDtlStatMapperType {
UNKNOWN("알수없음", IntgrnDtlStatCd.UNKNOWN)
, NULL("입력값 없음", IntgrnDtlStatCd.ACPT_CMPLT)
, UNIDENTIFIED_USER("비회원", IntgrnDtlStatCd.UNIDENTIFIED_USER)
, FORBIDDEN("수신거부", IntgrnDtlStatCd.FORBIDDEN)
, INVALID_VALUE("파라미터 오류", IntgrnDtlStatCd.INVALID_VALUE)
, INTERNAL_ERROR("카카오페이 서버 오류", IntgrnDtlStatCd.INTERNAL_ERROR)
, INVALID_REQUEST("유효하지 않은 요청", IntgrnDtlStatCd.INVALID_REQUEST)
, UNDER_MAINTENANCE("점검중입니다.", IntgrnDtlStatCd.INTERNAL_ERROR)
, SENT_FAIL("송신실패", IntgrnDtlStatCd.FAIL)
, SENT("송신", IntgrnDtlStatCd.SENT)
, RECEIVED("수신", IntgrnDtlStatCd.RECEIVED)
, READ("열람", IntgrnDtlStatCd.READ)
, EXPIRED("만료", IntgrnDtlStatCd.EXPIRED)
, INTERNAL_SENT_ERR("내부 송신 오류", IntgrnDtlStatCd.INTERNAL_ERROR)
;
@Getter
private final String codeNm;
@Getter
private final IntgrnDtlStatCd intgrnDtlStatCd;
@Override
public String getCode() {
return this.name();
}
public static KkoTalkStatusCd valueOfEnum(String statCd) {
if (statCd == null)
return KkoTalkStatusCd.UNKNOWN;
KkoTalkStatusCd docBoxStatusCd = null;
try {
docBoxStatusCd = KkoTalkStatusCd.valueOf(statCd);
} catch (IllegalArgumentException e) {
docBoxStatusCd = KkoTalkStatusCd.UNKNOWN;
}
return docBoxStatusCd;
}
public static KkoTalkStatusCd getEnum(String value) {
for(KkoTalkStatusCd v : values())
if(v.getCode().equalsIgnoreCase(value)) return v;
throw new IllegalArgumentException();
}
}

@ -5,6 +5,7 @@ import javax.persistence.*;
import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.entity.*;
import cokr.xit.ens.modules.common.domain.*;
import cokr.xit.ens.modules.common.domain.support.*;
import cokr.xit.ens.modules.kkotalk.code.*;
import lombok.*;
import lombok.experimental.*;
@ -161,4 +162,10 @@ public class SendDetailKkoTalk extends BaseEntity {
@Column(name = "mk_tmplt_msg_json_data", nullable = true, length = 4000)
private String mkTmpltMsgJsonData;
@Enumerated(EnumType.STRING)
@Column(name = "status", nullable = false, length = 30)
@Setter
private KkoTalkStatusCd kkoTalkStat;
}

Loading…
Cancel
Save