✨ add coordinate map
This commit is contained in:
@@ -16,3 +16,15 @@ export const checkSecuritySettingApi = () => {
|
||||
name: "check-security-setting",
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 退出登录
|
||||
*/
|
||||
export const userLogoutApi = () => {
|
||||
return service.Post('/api/auth/user/logout', {}, {
|
||||
meta: {
|
||||
ignoreToken: false,
|
||||
signature: false,
|
||||
},
|
||||
name: "user-logout",
|
||||
});
|
||||
};
|
||||
|
@@ -24,7 +24,7 @@ export const queryShareImageApi = (invite_code: string, access_password: string)
|
||||
access_password: access_password,
|
||||
}, {
|
||||
cacheFor: {
|
||||
expire: 60 * 60 * 24 * 7,
|
||||
expire: 60 * 5,
|
||||
mode: "restore",
|
||||
},
|
||||
meta: {
|
||||
|
@@ -595,3 +595,44 @@ export const getShareStatisticsInfoApi = () => {
|
||||
hitSource: ["upload-file", "upload-share-image"],
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取私密相册列表
|
||||
* @param provider
|
||||
* @param bucket
|
||||
* @param password
|
||||
*/
|
||||
export const getPrivateImageListApi = (provider: string, bucket: string, password: string) => {
|
||||
return service.Post('/api/auth/storage/image/private/list', {
|
||||
provider: provider,
|
||||
bucket: bucket,
|
||||
password: password,
|
||||
}, {
|
||||
cacheFor: {
|
||||
expire: 60 * 5,
|
||||
mode: "restore",
|
||||
},
|
||||
meta: {
|
||||
ignoreToken: false,
|
||||
signature: false,
|
||||
},
|
||||
name: "get-private-image-list",
|
||||
hitSource: ["upload-file", "delete-images"],
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取坐标列表
|
||||
*/
|
||||
export const getCoordinateListApi = () => {
|
||||
return service.Post('/api/auth/storage/coordinate/list', {}, {
|
||||
cacheFor: {
|
||||
expire:60 * 60 * 24 * 7,
|
||||
mode: "restore",
|
||||
},
|
||||
meta: {
|
||||
ignoreToken: false,
|
||||
signature: false,
|
||||
},
|
||||
name: "get-coordinate-list",
|
||||
hitSource: ["upload-file", "delete-images"],
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user