|
@@ -33,10 +33,18 @@ public class MaterialController extends BaseController {
|
|
|
@WebControllerLog(description = "史料管理-下载史料", addDb = true)
|
|
|
@ApiOperation("下载史料")
|
|
|
@GetMapping("download/{id}")
|
|
|
- public Result<MaterialEntity> download(@PathVariable Long id) {
|
|
|
+ public Result download(@PathVariable Long id) {
|
|
|
return materialService.download(id);
|
|
|
}
|
|
|
|
|
|
+ @WebControllerLog(description = "史料管理-删除", addDb = true)
|
|
|
+ @ApiOperation(value = "删除", notes = "db数据软删除, 物理数据真删除")
|
|
|
+ @GetMapping("remove/{id}")
|
|
|
+ public Result remove(@PathVariable Long id) {
|
|
|
+ return materialService.remove(id);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|