feat(player): 优化桌面投注布局与账号功能

This commit is contained in:
wchino
2026-07-21 21:11:07 +08:00
parent 406ebb7671
commit 8307cc3f88
25 changed files with 1514 additions and 195 deletions

View File

@@ -27,6 +27,12 @@ export type PlayerAuthLoginData = {
};
};
export type PlayerPasswordUpdatePayload = {
current_password: string;
password: string;
password_confirmation: string;
};
/** `GET /api/v1/player/auth/captcha`(公开) */
export function getPlayerAuthCaptcha(): Promise<PlayerAuthCaptchaResponse> {
return lotteryRequest.get<PlayerAuthCaptchaResponse>(`/player/auth/captcha`, {
@@ -42,3 +48,10 @@ export function postPlayerAuthLogin(body: PlayerAuthLoginPayload): Promise<Playe
...body,
});
}
/** `PUT /api/v1/player/password`(仅彩票端账号密码玩家) */
export function putPlayerPassword(
body: PlayerPasswordUpdatePayload,
): Promise<{ password_changed: boolean }> {
return lotteryRequest.put<{ password_changed: boolean }>(`/player/password`, body);
}