优化数据归属问题

This commit is contained in:
2026-04-23 15:08:37 +08:00
parent 378be9909d
commit 0373234750
29 changed files with 1993 additions and 75 deletions

View File

@@ -6,6 +6,9 @@ export const actionUrl = new Map([
['index', url + 'index'],
['edit', url + 'edit'],
['log', '/admin/auth.AdminLog/index'],
['walletSummary', url + 'walletSummary'],
['walletRecords', url + 'walletRecords'],
['withdrawApply', url + 'withdrawApply'],
])
export function index() {
@@ -35,3 +38,31 @@ export function postData(data: anyObj) {
}
)
}
export function walletSummary() {
return createAxios({
url: actionUrl.get('walletSummary'),
method: 'get',
})
}
export function walletRecords(filter: anyObj = {}) {
return createAxios<TableDefaultData>({
url: actionUrl.get('walletRecords'),
method: 'get',
params: filter,
})
}
export function withdrawApply(data: anyObj) {
return createAxios(
{
url: actionUrl.get('withdrawApply'),
method: 'post',
data,
},
{
showSuccessMessage: true,
}
)
}