mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 01:49:30 +08:00
增加屏蔽
This commit is contained in:
parent
f222c159d9
commit
c9c1ceff83
1 changed files with 17 additions and 1 deletions
|
@ -368,11 +368,23 @@ async function getUpdateInfo() {
|
|||
return callV2('GET', '/updateInfo');
|
||||
}
|
||||
|
||||
async function addUserBlock(user_id) {
|
||||
return call('POST', `blocks/${user_id}`);
|
||||
}
|
||||
|
||||
|
||||
async function deleteUserBlock(user_id) {
|
||||
return call('DELETE', `blocks/${user_id}`);
|
||||
}
|
||||
|
||||
async function getBlockUsers() {
|
||||
return call('GET', `blocks`);
|
||||
}
|
||||
|
||||
export async function updatePushInfo() {
|
||||
return callV2('POST', '/push');
|
||||
}
|
||||
|
||||
|
||||
async function upload(method, api, body) {
|
||||
let token = await Token.getUserToken();
|
||||
let formData = new FormData();
|
||||
|
@ -577,4 +589,8 @@ export default {
|
|||
getUpdateInfo,
|
||||
|
||||
updatePushInfo,
|
||||
|
||||
addUserBlock,
|
||||
deleteUserBlock,
|
||||
getBlockUsers,
|
||||
}
|
Loading…
Reference in a new issue