|
@@ -44,15 +44,15 @@ public class MuseumPictureGroupController {
|
|
|
|
|
|
@DeleteMapping("/delete")
|
|
|
@Operation(summary = "删除图片组")
|
|
|
- public CommonResult<Boolean> deletePictureGroup(@RequestParam("groupId") Integer groupId) {
|
|
|
- museumPictureGroupService.deletePictureGroup(groupId);
|
|
|
+ public CommonResult<Boolean> deletePictureGroup(@RequestParam("id") Integer id) {
|
|
|
+ museumPictureGroupService.deletePictureGroup(id);
|
|
|
return CommonResult.success(true);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/get")
|
|
|
@Operation(summary = "查找图片组")
|
|
|
- public CommonResult<MuseumPictureGroupRespVO> getMuseumPicture(@RequestParam("groupId") Integer groupId) {
|
|
|
- MuseumPictureGroupDO result = museumPictureGroupService.selectPictureGroup(groupId);
|
|
|
+ public CommonResult<MuseumPictureGroupRespVO> getMuseumPicture(@RequestParam("id") Integer id) {
|
|
|
+ MuseumPictureGroupDO result = museumPictureGroupService.selectPictureGroup(id);
|
|
|
MuseumPictureGroupRespVO result1 = BeanUtils.toBean(result, MuseumPictureGroupRespVO.class);
|
|
|
return CommonResult.success(result1);
|
|
|
}
|