feat:KYC认证
This commit is contained in:
42
src/typings/api.d.ts
vendored
42
src/typings/api.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user