1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| package com.vincent.rsf.server.common.service;
|
| import com.vincent.rsf.server.common.domain.BaseParam;
| import com.vincent.rsf.server.system.entity.ExportTask;
|
| import java.io.File;
| import java.util.Map;
| import java.util.function.Function;
|
| public interface AsyncListExportTaskService {
| ExportTask createTask(
| String resourceKey,
| String defaultReportTitle,
| Map<String, Object> payload,
| Long tenantId,
| Long userId
| );
|
| ExportTask getTask(Long taskId, String resourceKey, Long tenantId, Long userId);
|
| ExportTask getTask(Long taskId, Long tenantId, Long userId);
|
| File getDownloadFile(Long taskId, String resourceKey, Long tenantId, Long userId);
|
| File getDownloadFile(Long taskId, Long tenantId, Long userId);
|
| <T, P extends BaseParam> void executeAsync(
| Long taskId,
| String resourceKey,
| Map<String, Object> payload,
| Function<Map<String, Object>, P> paramBuilder,
| ListExportHandler<T, P> exportHandler
| );
| }
|
|