🚧 optimization & adjustments
This commit is contained in:
@@ -22,6 +22,10 @@ export const queryShareImageApi = (invite_code: string, access_password: string)
|
||||
invite_code: invite_code,
|
||||
access_password: access_password,
|
||||
}, {
|
||||
cacheFor: {
|
||||
expire: 60 * 60 * 24 * 7,
|
||||
mode: "restore",
|
||||
},
|
||||
meta: {
|
||||
ignoreToken: false,
|
||||
signature: false,
|
||||
@@ -35,6 +39,10 @@ export const queryShareRecordListApi = (dataRequest: string[]) => {
|
||||
return service.Post('/api/auth/share/record/list', {
|
||||
date_range: dataRequest,
|
||||
}, {
|
||||
cacheFor: {
|
||||
expire: 60 * 60 * 24 * 7,
|
||||
mode: "restore",
|
||||
},
|
||||
meta: {
|
||||
ignoreToken: false,
|
||||
signature: false,
|
||||
@@ -45,12 +53,13 @@ export const queryShareRecordListApi = (dataRequest: string[]) => {
|
||||
* 查询分享信息
|
||||
* @param invite_code
|
||||
*/
|
||||
export const queryShareInfoApi = (invite_code: string) => {
|
||||
export const queryShareInfoApi = (invite_code: string, access_password: string) => {
|
||||
return service.Post('/api/auth/share/info', {
|
||||
invite_code: invite_code,
|
||||
access_password: access_password,
|
||||
}, {
|
||||
cacheFor: {
|
||||
expire: 60, //60 * 60 * 24 * 7
|
||||
expire: 60 * 60 * 24 * 7,
|
||||
mode: "restore",
|
||||
},
|
||||
meta: {
|
||||
@@ -65,7 +74,7 @@ export const queryShareInfoApi = (invite_code: string) => {
|
||||
export const queryShareOverviewApi = () => {
|
||||
return service.Post('/api/auth/share/overview', {}, {
|
||||
cacheFor: {
|
||||
expire: 60, //60 * 60 * 24 * 7
|
||||
expire: 60 * 60 * 24 * 7,
|
||||
mode: "restore",
|
||||
},
|
||||
meta: {
|
||||
|
@@ -132,12 +132,12 @@ export const albumListApi = (type: number, sort: boolean) => {
|
||||
* @param provider
|
||||
* @param bucket
|
||||
*/
|
||||
export const queryAlbumDetailListApi = (id: number, provider: string, bucket: string,type:number) => {
|
||||
export const queryAlbumDetailListApi = (id: number, provider: string, bucket: string, type: number) => {
|
||||
return service.Post('/api/auth/storage/album/detail/list', {
|
||||
id: id,
|
||||
provider: provider,
|
||||
bucket: bucket,
|
||||
type:type,
|
||||
type: type,
|
||||
}, {
|
||||
cacheFor: {
|
||||
expire: 60 * 60 * 24 * 7,
|
||||
@@ -439,3 +439,18 @@ export const albumShareApi = (id: number, expire_date: string, access_limit: num
|
||||
name: "album-share",
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 搜索照片
|
||||
* @param data
|
||||
*/
|
||||
export const imageSearchApi = (data: any) => {
|
||||
return service.Post('/api/auth/storage/image/search', {
|
||||
...data,
|
||||
}, {
|
||||
meta: {
|
||||
ignoreToken: false,
|
||||
signature: false,
|
||||
},
|
||||
name: "image-search",
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user