feat(X-Pack): [数据填报]增加清空表数据功能

This commit is contained in:
ulleo
2025-01-23 16:02:46 +08:00
committed by xuwei-fit2cloud
parent 63be4ce890
commit 1f86758a9f
5 changed files with 20 additions and 0 deletions

View File

@@ -67,6 +67,10 @@ public interface DataFillingApi {
@GetMapping("/form/{formId}/delete/{id}")
void deleteRowData(@PathVariable("formId") Long formId, @PathVariable("id") Long id) throws Exception;
@DePermit({"#p0+':manage'"})
@GetMapping("/form/{formId}/truncate")
void truncateRowData(@PathVariable("formId") Long formId) throws Exception;
@DePermit({"#p0+':manage'"})
@PostMapping("/form/{formId}/batch-delete")
void batchDeleteRowData(@PathVariable("formId") Long formId, @RequestBody List<Long> ids) throws Exception;