集成家长短信通知
This commit is contained in:
@@ -45,7 +45,7 @@ export async function getParent(userId: number): Promise<Parent> {
|
||||
|
||||
export async function updateParent(
|
||||
userId: number,
|
||||
data: { nickname?: string; avatar_url?: string; phone?: string }
|
||||
data: { nickname?: string; avatar_url?: string }
|
||||
): Promise<Parent> {
|
||||
return request<Parent>(`/banban/parents/${userId}`, {
|
||||
method: 'PATCH',
|
||||
@@ -53,6 +53,13 @@ export async function updateParent(
|
||||
})
|
||||
}
|
||||
|
||||
export async function authorizeParentPhone(code: string): Promise<Parent> {
|
||||
return request<Parent>('/banban/parents/me/phone', {
|
||||
method: 'POST',
|
||||
data: { code },
|
||||
})
|
||||
}
|
||||
|
||||
export function getToken(): string {
|
||||
return getStoredToken()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user