add coordinate map

This commit is contained in:
2025-03-16 23:11:32 +08:00
parent 9e6dd55087
commit 0068d36ac2
29 changed files with 55278 additions and 40 deletions

View File

@@ -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",
});
};

View File

@@ -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: {

View File

@@ -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"],
});
};