- 안명인증 페이지 추가
This commit is contained in:
@@ -1,9 +1,36 @@
|
||||
import { ProcessResult } from "../types";
|
||||
import { FaceAuthResult, FaceAuthTransType } from "./types";
|
||||
|
||||
export const AuthResultBtnGroup = [
|
||||
{ name: '전체', value: FaceAuthResult.ALL },
|
||||
{ name: '성공', value: FaceAuthResult.SUCCESS },
|
||||
{ name: '실패', value: FaceAuthResult.FAIL },
|
||||
];
|
||||
|
||||
export const TransactionTypeBtnGroup = [
|
||||
{ name: '전체', value: FaceAuthTransType.ALL },
|
||||
{ name: '인증', value: FaceAuthTransType.AUTH },
|
||||
{ name: '등록', value: FaceAuthTransType.REGISTER },
|
||||
];
|
||||
|
||||
|
||||
export const getAuthResultStatusText = (status?: string): string => {
|
||||
if (!status) return '';
|
||||
|
||||
export const ResultStatusBtnGroup = [
|
||||
{ name: '전체', value: ProcessResult.ALL },
|
||||
{ name: '성공', value: ProcessResult.SUCCESS },
|
||||
{ name: '실패', value: ProcessResult.FAIL },
|
||||
];
|
||||
const authResultMap: Record<string, string> = {
|
||||
'SUCCESS': '성공',
|
||||
'FAIL': '실패'
|
||||
}
|
||||
|
||||
return authResultMap[status] || status;
|
||||
}
|
||||
|
||||
export const getTransTypeText = (transType?: string): string => {
|
||||
if (!transType) return '';
|
||||
|
||||
const transTypeMap: Record<string, string> = {
|
||||
'REGISTER': '등록',
|
||||
'AUTH': '인증'
|
||||
}
|
||||
|
||||
return transTypeMap[transType] || transType;
|
||||
}
|
||||
@@ -3,19 +3,32 @@
|
||||
// 안면인증 관련 타입들
|
||||
// ========================================
|
||||
|
||||
import { FilterProps, ListItemProps, ProcessResult } from "../types";
|
||||
import { DefaulResponsePagination, DefaultRequestPagination } from "@/entities/common/model/types";
|
||||
import { ExtensionRequestParams, FilterProps, ListItemProps, ProcessResult } from "../types";
|
||||
|
||||
export enum FaceAuthTransactionType {
|
||||
ALL = "ALL",
|
||||
AUTH = "AUTH",
|
||||
REGISTER = "REGISTER"
|
||||
export enum FaceAuthTransType {
|
||||
ALL = "",
|
||||
REGISTER = "REGISTER",
|
||||
AUTH = "AUTH"
|
||||
}
|
||||
|
||||
export enum FaceAuthResult {
|
||||
ALL = "",
|
||||
SUCCESS = "SUCCESS",
|
||||
FAIL = "FAIL"
|
||||
}
|
||||
|
||||
export interface FaceAuthListItem {
|
||||
tid?: string;
|
||||
companyName?: string;
|
||||
mid?: string;
|
||||
groupId?: string;
|
||||
requestDate?: string;
|
||||
resultStatus?: string;
|
||||
name?: string;
|
||||
requestTime?: string;
|
||||
cpid?: string;
|
||||
userMallId?: string;
|
||||
transType?: FaceAuthTransType;
|
||||
authResult?: string;
|
||||
failReason?: string;
|
||||
}
|
||||
|
||||
export interface FaceAuthListProps {
|
||||
@@ -25,15 +38,39 @@ export interface FaceAuthListProps {
|
||||
|
||||
export interface FaceAuthFilterProps extends FilterProps {
|
||||
mid: string;
|
||||
memberId: string;
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
transactionType: FaceAuthTransactionType;
|
||||
processResult: ProcessResult;
|
||||
userMallId: string;
|
||||
fromDate: string;
|
||||
toDate: string;
|
||||
transType: FaceAuthTransType;
|
||||
authResult: FaceAuthResult;
|
||||
setMid: (mid: string) => void;
|
||||
setMemberId: (memberId: string) => void;
|
||||
setStartDate: (startDate: string) => void;
|
||||
setEndDate: (endDate: string) => void;
|
||||
setTransactionType: (transactionType: FaceAuthTransactionType) => void;
|
||||
setProcessResult: (processResult: ProcessResult) => void;
|
||||
setUserMallId: (userMallId: string) => void;
|
||||
setFromDate: (fromDate: string) => void;
|
||||
setToDate: (toDate: string) => void;
|
||||
setTransType: (transType: FaceAuthTransType) => void;
|
||||
setAuthResult: (authResult: FaceAuthResult) => void;
|
||||
}
|
||||
|
||||
export interface ExtensionFaceAuthListParams extends ExtensionRequestParams {
|
||||
fromDate: string;
|
||||
toDate: string;
|
||||
userMallId: string;
|
||||
transType: FaceAuthTransType;
|
||||
authResult: string;
|
||||
page?: DefaultRequestPagination
|
||||
}
|
||||
|
||||
export interface ExtensionFaceAuthListResponse extends DefaulResponsePagination {
|
||||
content: Array<FaceAuthListItem>
|
||||
}
|
||||
|
||||
export interface ExtensionFaceAuthExcelDownlaodPrams {
|
||||
mid: string;
|
||||
email: string;
|
||||
fromDate: string;
|
||||
toDate: string;
|
||||
}
|
||||
|
||||
export interface ExtensionFaceAuthExcelDownlaodResponse {
|
||||
status : boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user