[매입] mg_recv_svc → 전문수신 @Service (ACM-MG-004)
This commit is contained in:
parent
55787a96ad
commit
c2ff44f8e2
1 changed files with 32 additions and 0 deletions
|
|
@ -0,0 +1,32 @@
|
|||
package com.klaro.acquirecore.acquiring.repository;
|
||||
|
||||
import com.klaro.acquirecore.acquiring.codec.ParsedMessage;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* 매입 거래 Repository 인터페이스 (DB 접근 스텁)
|
||||
*/
|
||||
public interface AcquireTransactionRepository {
|
||||
|
||||
/**
|
||||
* 거래ID로 거래 조회
|
||||
* @param txId 거래ID
|
||||
* @return 거래 정보
|
||||
*/
|
||||
Optional<ParsedMessage> findByTxId(String txId);
|
||||
|
||||
/**
|
||||
* 거래 저장
|
||||
* @param message 거래 정보
|
||||
* @return 저장 성공 여부
|
||||
*/
|
||||
boolean save(ParsedMessage message);
|
||||
|
||||
/**
|
||||
* 거래ID로 삭제
|
||||
* @param txId 거래ID
|
||||
* @return 삭제 성공 여부
|
||||
*/
|
||||
boolean deleteByTxId(String txId);
|
||||
}
|
||||
Reference in a new issue