优化数据归属问题
This commit is contained in:
@@ -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,
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user