build pb shell

This commit is contained in:
2026-09-22 22:25:39 +08:00
parent fcd795673d
commit b8ff9acc3d
45 changed files with 5277 additions and 3986 deletions

View File

@@ -0,0 +1,341 @@
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
/* eslint-disable camelcase */
// @ts-nocheck
/** 获取会员的完整信息 */
export type GetFullReply = {
/** 唯一标识 */
identity?: string;
/** 帐号 */
account?: string;
/** 手机号码 必填 */
phone?: string;
/** 验证码 */
email?: string;
/** 权限 */
rights?: string;
/** 昵称 */
nickname?: string;
/** 头像 */
avatar?: string;
/** 生日 */
birthday?: string;
/** 性别1为男性2为女性 */
sex?: number;
/** 国家 */
country?: string;
/** 省 */
province?: string;
/** 市 */
city?: string;
/** 区 */
area?: string;
/** 签名 */
sign?: string;
/** 背景&封面 */
cover?: string;
/** 积分 */
score?: number;
/** 等级 */
level?: number;
/** 用户验证状态 */
verifyStatus?: VerifyStatus;
/** 用户标签 */
tags?: TagItem[];
};
export type VerifyStatus = {
/** 邮箱是否已验证 */
emailVerify?: number;
/** 手机是否已验证 */
phoneVerify?: number;
/** 人脸或照片是否已验证 */
faceVerify?: number;
/** 证件是否已验证 */
documentVerify?: number;
/** 实名是否已验证 */
kycVerify?: number;
};
export type TagItem = {
name?: string;
icon?: string;
};
export type SetDataRequest = {
/** 昵称 */
nickname?: string;
/** 头像 */
avatar?: string;
/** 生日 */
birthday?: string;
/** 性别1为男性2为女性 */
sex?: number;
/** 国家 */
country?: string;
/** 省 */
province?: string;
/** 市 */
city?: string;
/** 区 */
area?: string;
/** 签名 */
sign?: string;
/** 背景&封面 */
cover?: string;
/** 积分 */
score?: number;
/** 等级 */
level?: number;
};
export type SetPasswordRequest = {
/** 旧密码 */
oldPassword?: string;
/** 新密码 */
newPassword?: string;
};
export type StatisticsRequest = {
/** 要获取的统计数据字段。 */
field?: string[];
};
export type StatisticsReply = {
/** 数据以Map格式输出 */
Data?: { [key: string]: number };
};
/** assport通行证模块-帐号数据 */
export interface Account {
}
type RequestType = {
path: string;
method: string;
body: string | null;
};
type RequestHandler = (request: RequestType, meta: { service: string, method: string }) => Promise<unknown>;
export function createAccountClient(
handler: RequestHandler
): Account {
return {
};
}
export type Empty = {
};
export type StatusReply = {
/** 状态码 */
code?: number;
/** 状态说明 */
message?: string;
/** 数据 */
details?: string;
/** 响应时间序列 */
timeseq?: number;
};
export type IdentRequest = {
/** 唯一ID */
id?: number;
/** 唯一码 */
identity?: string;
};
export type FetchRequest = {
/** 页数 */
pageNo?: number;
/** 每页记录数 */
pageSize?: number;
/** 条件参数,key=val,eg key:category_id=?,vlaue=11 */
params?: { [key: string]: string };
};
export type VersionRequest = {
/** 时序版本号 */
version?: number;
};
export type SearchRequest = {
/** 关键词 */
keyword?: string;
};
export type ForgetVerifyRequest = {
/** 手机号 */
phone?: string;
/** 验证码 */
code?: string;
};
export type ForgetResetRequest = {
/** 唯一码 */
identity?: string;
/** 密码 */
password?: string;
};
/** Passport通行证模块-找回密码 */
export interface Forget {
}
export function createForgetClient(
handler: RequestHandler
): Forget {
return {
};
}
export type LoginByPwdRequest = {
/** 账号 必填 */
account?: string;
/** 密码 必填 */
password?: string;
};
export type LoginByCodeRequest = {
/** 国家 */
country?: string;
/** 手机号码 */
phone?: string;
/** 验证码 */
code?: string;
/** 代理ID */
agencyId?: number;
/** 工作人员ID */
staffId?: number;
/** 所属ID */
owner_id?: number;
/** 所属唯一码 */
owner_identity?: string;
};
export type LoginReply = {
id?: number;
/** 用户唯一码 */
identity?: string;
/** 用户凭证 */
token?: string;
/** 扩展字段 */
extend?: { [key: string]: string };
/** 用户验证状态 */
verifyStatus?: VerifyStatus;
};
/** Passport-通行证模块-登录 */
export interface Login {
}
export function createLoginClient(
handler: RequestHandler
): Login {
return {
};
}
export type RegisterRequest = {
/** 国家码,eg CN US */
country?: string;
/** 邮箱 */
email?: string;
/** 帐号 */
account?: string;
/** 手机号 */
phone?: string;
/** 密码 */
password?: string;
/** 验证码 */
code?: string;
/** 代理ID */
agencyId?: number;
/** 工作人员ID */
staffId?: number;
/** 所属ID */
owner_id?: number;
/** 所属唯一码 */
owner_identity?: string;
};
export type RegisterReply = {
id?: number;
/** 用户唯一码 */
identity?: string;
/** 用户Header所需Token */
token?: string;
/** 扩展字段 */
extend?: { [key: string]: string };
/** 用户验证状态 */
verifyStatus?: VerifyStatus;
};
/** Passport-通行证模块-注册 */
export interface Register {
}
export function createRegisterClient(
handler: RequestHandler
): Register {
return {
};
}
export type VerifyRequest = {
/** 服务提供商 */
provider?: string;
/** 参数 */
args?: { [key: string]: string };
};
export type JumioCallbackPayload = {
scanReference?: string;
customerInternalReference?: string;
verificationStatus?: VerificationStatus;
document?: Document;
/** 其他可选字段 */
personalInformation?: PersonalInformation;
faceMap?: FaceMap;
callbackDate?: string;
clientIp?: string;
};
export type VerificationStatus = {
/** "PENDING", "DONE", "FAILED" */
state?: string;
/** 可选字段,失败原因 */
reason?: string;
};
export type Document = {
/** "APPROVED_VERIFIED", "DENIED_FRAUD", etc. */
status?: string;
/** "PASSPORT", "DRIVER_LICENSE", etc. */
type?: string;
issuingCountry?: string;
number?: string;
};
export type PersonalInformation = {
firstName?: string;
lastName?: string;
dateOfBirth?: string;
nationality?: string;
};
export type FaceMap = {
status?: string;
/** 人脸比对相似度 */
similarity?: number;
};
/** Passport(会员通行证)-验证 */
export interface Verify {
}
export function createVerifyClient(
handler: RequestHandler
): Verify {
return {
};
}
// @@protoc_insertion_point(typescript-http-eof)