import { MiniAppError, MiniAppErrorType } from '../miniAppError'; import BridgeFunction from './bridgeFunction'; import axios from 'axios'; class GetSavedFileList extends BridgeFunction { name = 'getSavedFileList'; protected async executeFunction() { const res = await axios.get('/getsavedfilelist'); if (res?.data) { return this.cbHandler?.success({ fileList: res?.data }); } else { throw new MiniAppError(MiniAppErrorType.unknown); } } } export default GetSavedFileList;