/*
 * au_auth_rankcard_dbio.h - au 모듈 DB 접근 계층 copybook (au_auth_rankcard_dbio, part of libaudbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 * Shape: window rank() 로 N위 승인 금액 조회.
 */
#ifndef AU_AUTH_RANKCARD_DBIO_H
#define AU_AUTH_RANKCARD_DBIO_H

typedef struct { long rk; long auth_id; long amount; } au_rankcard_rec_t;

long audb_auth_amount_at_rank(const char *bizdate, long target_rank);

#endif /* AU_AUTH_RANKCARD_DBIO_H */
