|
|
@ -31,10 +31,10 @@ public class PhotoController { |
|
|
|
return Result.success(photosService.getList(pageQuery)); |
|
|
|
} |
|
|
|
|
|
|
|
@Operation(summary = "拍摄一张照片") |
|
|
|
@Operation(summary = "根据id获取照片") |
|
|
|
@GetMapping("/{id}") |
|
|
|
public Result<PhotoVO> show(@PathVariable Long id) { |
|
|
|
return Result.success(photosService.show(id)); |
|
|
|
public Result<PhotoVO> get(@PathVariable Long id) { |
|
|
|
return Result.success(photosService.get(id)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|