|
@@ -65,18 +65,13 @@ public class GoodsController {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+ @WebControllerLog(description = "文物管理-新增&编辑", addDb = true)
|
|
|
@ApiOperation(value = "文物-新增&编辑", notes = "默认封面图是第一张")
|
|
|
@PostMapping("modelSave")
|
|
|
public Result modelSave(@Valid @RequestBody ModelDto param) {
|
|
|
return entityService.saveModel(param);
|
|
|
}
|
|
|
|
|
|
-// @ApiOperation("文物-保存文物id")
|
|
|
-// @GetMapping("modelBinding/{projectId}/{goodsIds}")
|
|
|
-// public Result modelBinding(@PathVariable String projectId, @PathVariable String goodsIds) {
|
|
|
-// return entityService.modelBinding(projectId, goodsIds);
|
|
|
-// }
|
|
|
|
|
|
|
|
|
@ApiOperation("上传文件")
|
|
@@ -85,32 +80,15 @@ public class GoodsController {
|
|
|
return entityService.upload(file, "img", null);
|
|
|
}
|
|
|
|
|
|
-// @ApiOperation("文物-上传文件")
|
|
|
-// @PostMapping("modelUpload/{projectId}")
|
|
|
-// public Result modelUpload(MultipartFile file, @PathVariable String projectId) {
|
|
|
-// return entityService.modelUpload(file, projectId);
|
|
|
-// }
|
|
|
-
|
|
|
+ @WebControllerLog(description = "文物管理-设置封面图", addDb = true)
|
|
|
@ApiOperation("文物-设置封面图")
|
|
|
@GetMapping("modelSetIndex/{fileId}")
|
|
|
public Result modelSetIndex(@PathVariable Long fileId) {
|
|
|
return entityService.setIndex(fileId);
|
|
|
}
|
|
|
|
|
|
-// @ApiOperation(value = "文档-删除", notes = "多个以逗号分隔开")
|
|
|
-// @GetMapping("docRemoves/{ids}")
|
|
|
-// public Result docRemoves(@PathVariable String ids) {
|
|
|
-// return entityService.removes(ids);
|
|
|
-// }
|
|
|
-//
|
|
|
-// @ApiOperation("文档-编辑保存")
|
|
|
-// @PostMapping("docSave")
|
|
|
-// public Result docSave(@RequestBody GoodsDto param) {
|
|
|
-// return entityService.save(param);
|
|
|
-// }
|
|
|
-
|
|
|
|
|
|
- @WebControllerLog(description = "文件服务-删除文件")
|
|
|
+ @WebControllerLog(description = "文物管理-删除文件", addDb = true)
|
|
|
@ApiOperation(value = "文物-删除文件", notes = "数据软删除,物理文件硬删除")
|
|
|
@DeleteMapping("remove/{fileId}")
|
|
|
public Result remove(@PathVariable Long fileId) {
|