上传小程序修改合入
This commit is contained in:
@@ -30,7 +30,7 @@ export interface Parent {
|
||||
}
|
||||
|
||||
export async function wechatLogin(data: WechatLoginPayload): Promise<LoginSession> {
|
||||
const session = await request<LoginSession>('/auth/login', {
|
||||
const session = await request<LoginSession>('/banban/auth/login', {
|
||||
method: 'POST',
|
||||
data,
|
||||
})
|
||||
@@ -39,14 +39,14 @@ export async function wechatLogin(data: WechatLoginPayload): Promise<LoginSessio
|
||||
}
|
||||
|
||||
export async function getParent(userId: number): Promise<Parent> {
|
||||
return request<Parent>(`/parents/${userId}`)
|
||||
return request<Parent>(`/banban/parents/${userId}`)
|
||||
}
|
||||
|
||||
export async function updateParent(
|
||||
userId: number,
|
||||
data: { nickname?: string; avatar_url?: string; phone?: string }
|
||||
): Promise<Parent> {
|
||||
return request<Parent>(`/parents/${userId}`, {
|
||||
return request<Parent>(`/banban/parents/${userId}`, {
|
||||
method: 'PATCH',
|
||||
data,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user