失物招领详情

This commit is contained in:
zjf committed 2025-10-31 15:26:04 +08:00
1 parent 5eaeefeb37
commit 003b195e79
1 file changed
+11
@@ -149,4 +149,15 @@ public class LostAndFoundController {
return R.ok(lostAndFoundPageVoPage);
}
@Operation(summary = "失物招领app详情查询" , description = "失物招领app详情查询" )
@GetMapping("/app/getDetails")
public R getLostAndFoundAppDetail(@RequestParam("id") Long id) {
LostAndFoundEntity lostAndFound = lostAndFoundService.getById(id);
if (Objects.isNull(lostAndFound)) {
return R.failed("失物招领信息不存在");
}
LostAndFoundPageVo lostAndFoundPageVo = BeanUtils.toBean(lostAndFound, LostAndFoundPageVo.class);
return R.ok(lostAndFoundPageVo);
}
}