- 계좌성명조회 페이지 수정
This commit is contained in:
@@ -1,9 +1,25 @@
|
||||
import { ProcessResult } from "../types";
|
||||
import { AccountHolderResultStatus } from "./types";
|
||||
import { AccountHolderResultStatus, AccountHolderSearchCl } from "./types";
|
||||
|
||||
|
||||
export const resultStatusBtnGroup = [
|
||||
{ name: '전체', value: AccountHolderResultStatus.ALL },
|
||||
{ name: '성공', value: AccountHolderResultStatus.SUCCESS },
|
||||
{ name: '실패', value: AccountHolderResultStatus.FAIL },
|
||||
]
|
||||
]
|
||||
|
||||
export const SearchTypeOption = [
|
||||
{ name: '예금주', value: AccountHolderSearchCl.ACCOUNT_NAME },
|
||||
{ name: '계좌번호', value: AccountHolderSearchCl.ACCOUNT_NO },
|
||||
];
|
||||
|
||||
|
||||
export const getAccountHolderStatusText = (status?: string): string => {
|
||||
if (!status) return '';
|
||||
|
||||
const resultStatusMap: Record<string, string> = {
|
||||
'SUCCESS': '성공',
|
||||
'FAIL': '실패'
|
||||
};
|
||||
return resultStatusMap[status] || status;
|
||||
}
|
||||
Reference in New Issue
Block a user