上传小程序修改合入

This commit is contained in:
HycJack
2026-05-05 12:24:48 +08:00
parent 7e29958ffa
commit bb87bff0d3
19 changed files with 684 additions and 283 deletions

View File

@@ -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,
})