feat(xb): unify DPL and HN backend, themes and registration reports
This commit is contained in:
1 parent
eb630d2caf
commit
1ded40226b
1082 files changed
+159466
-104
No files matched your search
Vendored
+62
@@ -0,0 +1,62 @@
|
||||
|
||||
import request from './request';
|
||||
|
||||
|
||||
export function getInviteData() {
|
||||
return request({
|
||||
url: '/user/invite/fetch',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function getInviteDetails(current, pageSize) {
|
||||
return request({
|
||||
url: '/user/invite/details',
|
||||
method: 'get',
|
||||
params: {
|
||||
current,
|
||||
page_size: pageSize
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function getCommissionConfig() {
|
||||
return request({
|
||||
url: '/user/comm/config',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function generateInviteCode() {
|
||||
return request({
|
||||
url: '/user/invite/save',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function transferCommission(amount) {
|
||||
return request({
|
||||
url: '/user/transfer',
|
||||
method: 'post',
|
||||
data: {
|
||||
transfer_amount: amount
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function withdrawCommission(amount, account, method) {
|
||||
return request({
|
||||
url: '/user/ticket/withdraw',
|
||||
method: 'post',
|
||||
data: {
|
||||
withdraw_amount: amount,
|
||||
withdraw_account: account,
|
||||
withdraw_method: method
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user