init
This commit is contained in:
@@ -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("用户不存在");
|
||||
|
||||
Reference in New Issue
Block a user