feat(player): 优化桌面投注布局与账号功能
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user