feat(user): 添加用户钱包功能和成员推广弹窗

This commit is contained in:
JiaJun
2026-04-16 17:13:09 +08:00
parent 5c33491ae2
commit 7f3a7c34f0
4 changed files with 287 additions and 5 deletions

View File

@@ -0,0 +1,26 @@
import createAxios from '/@/utils/axios'
export const url = '/admin/user.User/'
export function getWallet(id: string | number) {
return createAxios({
url: url + 'wallet',
method: 'get',
params: {
id,
},
})
}
export function postWallet(id: string | number, score: string | number) {
const formData = new FormData()
formData.append('id', String(id))
formData.append('score', String(score))
return createAxios({
url: url + 'wallet',
method: 'post',
data: formData,
}, {
showSuccessMessage: true,
})
}