Update remote soul-content with local content

This commit is contained in:
卡若
2026-01-09 11:58:08 +08:00
parent 2bdf275cba
commit d781dc07ed
172 changed files with 16577 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
export type PaymentStatus = 'pending' | 'success' | 'failed' | 'refunded';
export interface Order {
id: string;
userId: string;
amount: number;
currency: string;
status: PaymentStatus;
items: OrderItem[];
createdAt: Date;
updatedAt: Date;
}
export interface OrderItem {
id: string;
productId: string;
productType: 'section' | 'full_book' | 'membership';
quantity: number;
price: number;
}
export interface PaymentProvider {
name: string;
createOrder(order: Order): Promise<{ payUrl: string; orderId: string }>;
checkStatus(orderId: string): Promise<PaymentStatus>;
}