This commit is contained in:
张良(004796)
2024-04-22 11:06:35 +08:00
parent 3ce06a8ede
commit d631388b85
5 changed files with 22 additions and 7 deletions

View File

@@ -66,6 +66,12 @@ public class UserPicturesController extends BaseController {
return R.ok(userPicturesService.getById(id));
}
@GetMapping("/listByUserId")
public R<UserPictures> listByUserId(Long userId){
userPicturesService.listByUserIdAll(userId);
return R.ok();
}
/**
* 新增用户相册管理
*/
@@ -73,7 +79,7 @@ public class UserPicturesController extends BaseController {
@Log(title = "用户相册管理", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody UserPictures bo) {
public R<Void> addOrUpdate(@Validated(AddGroup.class) @RequestBody UserPictures bo) {
User user = userService.getByUsercode(bo.getUsercode());
if(user == null){
return R.fail("用户不存在");