const StorageBaseService=require("./base");class GenerateProximalSignService extends StorageBaseService{async exec(){const{params:e}=this.ctx.data,{cloudPath:t}=JSON.parse(e)||{};t||this.ctx.throw("cloud_path_required");const i=await global.uniCloud.getFileInfo(t);i||this.ctx.throw("storage_permission_denied: "+t);const a=(await this.getAuth()).uid||null;return i.uid!==a&&this.ctx.throw("storage_permission_denied: "+t),await global.uniCloud.reportFileUpload({uid:a,cloudPath:t}),{}}}module.exports=GenerateProximalSignService;