完成个人中心页面功能,公共组件部分调整
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user