Files
thebet365/apps/admin/src/views/bet-form.ts
Mars efff7c27e6 feat(admin,api,player): 结算预览分页、统计图表与返水限额
完善结算计算与预览 API(含后端分页),加强管理端结算/返水/权限,并优化玩家端投注单与队徽展示。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 13:54:33 +08:00

55 lines
1.2 KiB
TypeScript

export interface BetSelectionPreview {
matchId: string | null;
matchLabel: string;
leagueName: string;
marketType: string;
period: string | null;
selectionName: string;
odds: string;
}
export interface BetListRow {
id: string;
betNo: string;
userId: string;
username: string;
parentUsername: string | null;
agentId: string | null;
betType: string;
stake: string;
totalOdds: string | null;
potentialReturn: string | null;
actualReturn: string;
status: string;
settlementStatus: string | null;
currency: string;
placedAt: string;
settledAt: string | null;
selectionCount: number;
selectionSummary: string;
selectionPreviews: BetSelectionPreview[];
}
export interface BetSelectionDetail {
id: string;
matchId: string | null;
matchLabel: string;
leagueName: string;
marketType: string;
period: string | null;
selectionName: string;
handicapLine: string | null;
totalLine: string | null;
odds: string;
resultStatus: string | null;
effectiveOdds: string | null;
sortOrder: number;
}
export interface BetDetail extends BetListRow {
requestId: string;
createdAt: string;
updatedAt: string;
selections: BetSelectionDetail[];
}