Files
GDstarmotion-admin/src/services/finance/index.ts
PC-202306242200\Administrator fe72625bce 增加信息
2024-09-11 14:32:54 +08:00

66 lines
1.6 KiB
TypeScript

import { request } from '@umijs/max';
export async function integralPage(body) {
return request('/api/userspoints/page', {
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
data: body || {},
});
}
export async function withdrawPage(body) {
return request('/api/userspoints/extract/page', {
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
data: body || {},
});
}
export async function variationPage(body) {
return request('/api/userspoints/record/page', {
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
data: body || {},
});
}
export async function withdrawExtract(body) {
return request('/api/userspoints/points/extract/export', {
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
data: body || {},
responseType: 'blob'
});
}
export async function pointsExtract(body) {
return request('/api/userspoints/points/export', {
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
data: body || {},
responseType: 'blob'
});
}
export async function recordExtract(body) {
return request('/api/userspoints/points/record/export', {
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
data: body || {},
responseType: 'blob'
});
}