后台修改用户电话或邮箱接口
This commit is contained in:
@@ -126,6 +126,10 @@ public class MyUserController {
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
public R update(@RequestBody MyUserEntity user){
|
||||
boolean b = userService.checkUserTelOrEmail(user);
|
||||
if(!b){
|
||||
return R.error("电话或邮箱已存在");
|
||||
}
|
||||
userService.updateById(user);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user