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
+170
@@ -0,0 +1,170 @@
|
||||
|
||||
|
||||
import request from './request';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export function getUserInfo() {
|
||||
|
||||
return request({
|
||||
|
||||
url: '/user/info',
|
||||
|
||||
method: 'get'
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export function getIpLocationInfo() {
|
||||
|
||||
return request({
|
||||
|
||||
url: 'https://myip.ipip.net/json',
|
||||
|
||||
method: 'get',
|
||||
|
||||
baseURL: ''
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export function redeemGiftCard(giftcard) {
|
||||
|
||||
return request({
|
||||
|
||||
url: '/user/redeemgiftcard',
|
||||
|
||||
method: 'post',
|
||||
|
||||
data: { giftcard }
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export function changePassword(data) {
|
||||
|
||||
return request({
|
||||
|
||||
url: '/user/changePassword',
|
||||
|
||||
method: 'post',
|
||||
|
||||
data
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export function resetSecurity() {
|
||||
|
||||
return request({
|
||||
|
||||
url: '/user/resetSecurity',
|
||||
|
||||
method: 'get'
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export function updateRemindSettings(data) {
|
||||
|
||||
return request({
|
||||
|
||||
url: '/user/update',
|
||||
|
||||
method: 'post',
|
||||
|
||||
data
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export function getActiveSession() {
|
||||
|
||||
return request({
|
||||
|
||||
url: '/user/getActiveSession',
|
||||
|
||||
method: 'get'
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export function getCommConfig() {
|
||||
|
||||
return request({
|
||||
|
||||
url: '/user/comm/config',
|
||||
|
||||
method: 'get'
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export function getTelegramBotInfo() {
|
||||
|
||||
return request({
|
||||
|
||||
url: '/user/telegram/getBotInfo',
|
||||
|
||||
method: 'get'
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export function getUserSubscribe() {
|
||||
|
||||
return request({
|
||||
|
||||
url: '/user/getSubscribe',
|
||||
|
||||
method: 'get'
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user