feat(admin+api): 列表页子路由重构、结算历史与充值截图清理
赛事/代理管理从表格展开改为子路由详情页;结算页增加预览弹窗与历史记录;媒体库支持截图存储统计与自动/手动清理;Player 端充值截图压缩为 WebP 300KB。
This commit is contained in:
24
apps/admin/src/composables/agent-direct-players-context.ts
Normal file
24
apps/admin/src/composables/agent-direct-players-context.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import type { InjectionKey, Ref } from 'vue';
|
||||
import type { PlayerRow } from '../views/user-form';
|
||||
|
||||
export type AgentPlayerActions = {
|
||||
canCreatePlayer: boolean;
|
||||
openCreatePlayer: (parentAgentUserId: string) => void;
|
||||
openDetailPlayer: (id: string) => void;
|
||||
openEditPlayer: (id: string) => void;
|
||||
openTransfer: (type: 'deposit' | 'withdraw', row: { id: string; username?: string }) => void;
|
||||
toggleFreezePlayer: (row: PlayerRow) => void | Promise<void>;
|
||||
deletePlayer: (row: PlayerRow) => void | Promise<void>;
|
||||
openPlayerWalletLedger: (playerId: string, playerUsername?: string | null) => void;
|
||||
playerActionFlags: {
|
||||
showEdit: boolean;
|
||||
showDeposit: boolean;
|
||||
showWithdraw: boolean;
|
||||
showFreeze: boolean;
|
||||
showDelete: boolean;
|
||||
};
|
||||
};
|
||||
|
||||
export const agentPlayerActionsKey: InjectionKey<AgentPlayerActions> = Symbol('agentPlayerActions');
|
||||
export const agentDirectPlayersReloadKey: InjectionKey<Ref<(() => void) | null>> =
|
||||
Symbol('agentDirectPlayersReload');
|
||||
Reference in New Issue
Block a user