2
0

feat:KYC认证

This commit is contained in:
zhongzm
2025-01-14 12:01:18 +08:00
parent 434767a902
commit 192e58fc0b
8 changed files with 661 additions and 4 deletions

42
src/typings/api.d.ts vendored
View File

@@ -721,4 +721,46 @@ declare namespace Api {
/** Combined order params type */
type SubmitOrderParams = PackageOrderParams | RechargeOrderParams;
}
namespace KYC {
/** KYC status enum */
type KYCStatus = 0 | 1 | 2; // 0: 未认证, 1: 认证中, 2: 已认证
/** KYC info */
interface KYCInfo {
status: KYCStatus;
fullName?: string;
birthDate?: string;
idCardFile?: string;
photoFile?: string;
rejectReason?: string;
verifiedTime?: string;
}
/** KYC response */
interface KYCResponse {
code: number;
msg: string;
data: KYCInfo;
}
/** ID Type enum */
enum IDType {
DRIVERS_LICENSE = 1,
PASSPORT = 2,
RESIDENCE_PERMIT = 3,
STUDENT_ID = 4,
MEDICARE_CARD = 5,
BIRTH_CERTIFICATE = 6
}
/** KYC verify params */
interface KYCVerifyParams {
realName:string;
birthDate: string;
idType: IDType; // 改为数字类型
idFile: string;
identifyPicture: string;
kycRequestStatus: number;
}
}
}