完成个人中心页面功能,公共组件部分调整

This commit is contained in:
2025-04-29 18:47:36 +08:00
parent ec7eb7093f
commit 09d6255bd5
13 changed files with 531 additions and 666 deletions

View File

@@ -1,5 +1,4 @@
'use server'
import {callByUser, callPublic} from '@/actions/base'
export async function RechargeByAlipay(props: {
@@ -51,3 +50,20 @@ export async function IdentifyCallback(props: {
message: string
}>('/api/user/identify/callback', props)
}
export async function update(props: {
username: string
email: string
contact_qq: string
contact_wechat: string
}) {
return await callByUser('/api/user/update', props)
}
export async function updatePassword(props: {
phone: string
code: string
password: string
}) {
return await callByUser('/api/user/update/password', props)
}