mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-07 00:30:14 +08:00
🚧 WIP(custom): v3.0.0 migrate to vite and esm
This commit is contained in:
15
src/main/apis/delete/dogecloud.ts
Normal file
15
src/main/apis/delete/dogecloud.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { getRawData } from '@/utils/common'
|
||||
import { IStringKeyMap } from '#/types/types'
|
||||
import { removeFileFromDogeInMain } from '~/utils/deleteFunc'
|
||||
import { deleteFailedLog } from '~/utils/deleteLog'
|
||||
|
||||
export default class AwsS3Api {
|
||||
static async delete (configMap: IStringKeyMap): Promise<boolean> {
|
||||
try {
|
||||
return await removeFileFromDogeInMain(getRawData(configMap))
|
||||
} catch (error: any) {
|
||||
deleteFailedLog(configMap.fileName, 'DogeCloud', error)
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user