/** * 支付流程的相关接口 * */ import type proto from "db://assets/Scripts/proto/proto.pb.js"; import { type OpenStrategy } from "./PaymentOpener"; export interface PaymentFlow { /** 开始支付流程 */ run(orderId: string, payUrl: string, open: OpenStrategy): Promise; /** 恢复未完成订单 */ resume(orderId: string, payUrl: string): Promise; }