feat: acquire-core full legacy C corpus (~2066 files, build-verified) + generator + inventory
This commit is contained in:
commit
b96cf702ee
2897 changed files with 264970 additions and 0 deletions
38
app/include/rc_core.h
Normal file
38
app/include/rc_core.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* rc_core.h - 대사 모듈 핵심 계약 (레코드/상태/표준 DBIO API)
|
||||
*
|
||||
* 이 모듈의 온라인/배치 프로그램은 SQL 을 직접 다루지 않고 아래 표준
|
||||
* DBIO API 만 호출한다. 구현은 app/dbio/rc_dbio_main.pgc (ECPG).
|
||||
*/
|
||||
#ifndef RC_CORE_H
|
||||
#define RC_CORE_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* 대사 처리 상태코드 */
|
||||
#define RC_ST_RECV "R" /* 접수/수신 */
|
||||
#define RC_ST_DONE "M" /* 처리완료 */
|
||||
#define RC_ST_FAIL "U" /* 불일치/실패 */
|
||||
#define RC_ST_SETTLED "S" /* 정산완료 */
|
||||
|
||||
/* 대사 원장 레코드 (1행) */
|
||||
typedef struct {
|
||||
char key[16]; /* 처리키(승인/거래 번호) PK */
|
||||
char merch_id[16]; /* 가맹점번호 */
|
||||
char card_no[20]; /* 카드번호(마스킹) */
|
||||
long amount; /* 거래금액(원) */
|
||||
char biz_date[9]; /* 영업일 YYYYMMDD */
|
||||
char status[2]; /* 상태코드 */
|
||||
long fee; /* 수수료(원) */
|
||||
} rc_rec_t;
|
||||
|
||||
/* 표준 DBIO API (구현: rc_dbio_main.pgc) */
|
||||
int rc_dbio_connect(const char *target);
|
||||
int rc_dbio_disconnect(void);
|
||||
int rc_rec_insert(const rc_rec_t *rec);
|
||||
int rc_rec_select(const char *key, rc_rec_t *out);
|
||||
int rc_rec_update_status(const char *key, const char *status);
|
||||
long rc_rec_count(const char *biz_date, const char *status);
|
||||
int rc_rec_sum(const char *biz_date, long *out_sum);
|
||||
|
||||
#endif /* RC_CORE_H */
|
||||
Reference in a new issue