Browse Source

'11'

master
daixiantong 4 years ago
parent
commit
2746f9110c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/main/java/com/taauav/admin/controller/TauvInspectPhotoController.java

+ 3
- 3
src/main/java/com/taauav/admin/controller/TauvInspectPhotoController.java View File

/** /**
* 查询巡检正摄图列表 * 查询巡检正摄图列表
*/ */
// @RequiresPermissions("admin:photo:list")
@RequiresPermissions("admin:photo:list")
@GetMapping("/list") @GetMapping("/list")
public Response list(TauvInspectPhotoDTO inspectPhotoDTO, BaseQuery query) { public Response list(TauvInspectPhotoDTO inspectPhotoDTO, BaseQuery query) {
return tauvInspectPhotoService.selectPhotoPage(inspectPhotoDTO, query); return tauvInspectPhotoService.selectPhotoPage(inspectPhotoDTO, query);
/** /**
* 获取巡检正摄图详细信息 * 获取巡检正摄图详细信息
*/ */
// @RequiresPermissions("admin:photo:query")
@RequiresPermissions("admin:photo:query")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public Response getInfo(@PathVariable("id") Integer id) { public Response getInfo(@PathVariable("id") Integer id) {
return response.success(tauvInspectPhotoService.getInfo(id)); return response.success(tauvInspectPhotoService.getInfo(id));
/** /**
* 修改巡检正摄图 * 修改巡检正摄图
*/ */
// @RequiresPermissions("admin:photo:edit")
@RequiresPermissions("admin:photo:edit")
@PostMapping("/edit") @PostMapping("/edit")
public Response edit(@RequestBody TauvInspectPhoto tauvInspectPhoto) { public Response edit(@RequestBody TauvInspectPhoto tauvInspectPhoto) {
return tauvInspectPhotoService.editPhoto(tauvInspectPhoto); return tauvInspectPhotoService.editPhoto(tauvInspectPhoto);

Loading…
Cancel
Save