restful http请求方法错误修正

This commit is contained in:
gaoqr
2025-11-24 09:23:56 +08:00
parent ff71a6afbb
commit ae1341b6ff
8 changed files with 18 additions and 18 deletions
@@ -37,7 +37,7 @@ public class ReportDatasetController {
@Resource
private ReportDatasetService datasetService;
@PutMapping("/dataset")
@PostMapping("/dataset")
@Operation(summary = "创建报表数据集")
@OperateLog(type = CREATE)
@PreAuthorize("@ss.hasAnyPermissions('system:report:datasource-connect','base:report:datasource-connect')")
@@ -45,7 +45,7 @@ public class ReportDatasetController {
return success(datasetService.createDataset(createReqVO));
}
@PostMapping("/dataset")
@PutMapping("/dataset")
@Operation(summary = "更新报表数据集")
@OperateLog(type = UPDATE)
@PreAuthorize("@ss.hasAnyPermissions('system:report:datasource-connect','base:report:datasource-connect')")
@@ -52,7 +52,7 @@ public class ReportDatasourceController {
@Resource
private TenantParamsUtils tenantParamsUtils;
@PutMapping("/datasource")
@PostMapping("/datasource")
@Operation(summary = "创建报表数据源")
@OperateLog(type = CREATE)
@PreAuthorize("@ss.hasAnyPermissions('system:report:datasource-connect','base:report:datasource-connect')")
@@ -60,7 +60,7 @@ public class ReportDatasourceController {
return success(datasourceService.createDatasource(createReqVO));
}
@PostMapping("/datasource")
@PutMapping("/datasource")
@Operation(summary = "更新报表数据源")
@OperateLog(type = UPDATE)
@PreAuthorize("@ss.hasAnyPermissions('system:report:datasource-connect','base:report:datasource-connect')")
@@ -57,7 +57,7 @@ public class ReportTemplateController {
@Resource
private ReportTemplateService templateService;
@PutMapping("/template")
@PostMapping("/template")
@Operation(summary = "创建报表模板")
@OperateLog(type = CREATE)
@PreAuthorize("@ss.hasAnyPermissions('system:report:insert','base:report:insert')")
@@ -72,7 +72,7 @@ public class ReportTemplateController {
return success(templateService.copyReportTemplate(createReqVO));
}
@PostMapping("/template")
@PutMapping("/template")
@Operation(summary = "更新报表模板")
@OperateLog(type = UPDATE)
@PreAuthorize("@ss.hasAnyPermissions('system:report:update','base:report:update','system:report:save','base:report:save')")