修改user

master
冯凯 2023-10-27 14:38:06 +08:00
parent 1de5f4aaa4
commit bc05345dcc
1 changed files with 2 additions and 2 deletions

View File

@ -175,14 +175,14 @@ public class SysUserController extends BaseController
//--------------邮箱注册医生--------------------------------------
@PostMapping("/register/doctor")
public Result<?> registerDoctor(@RequestBody Doctor doctor){
userService.checkEmail(doctor.getEmail());
userService.checkEmailUnique(doctor);
return Result.success(userService.registerDoctor(doctor));
}
//-------------------------------------------------------------------------------
@PostMapping("/register/patient")
public Result<?> registerPatient(@RequestBody Patient patient){
userService.checkEmail(patient.getEmail());
userService.checkEmailUnique(patient);
return Result.success(userService.registerPatient(patient));
}