upd remote interface registerUser
parent
29bbb6e8a4
commit
56a1c1f035
|
@ -41,10 +41,10 @@ public interface RemoteUserService {
|
|||
|
||||
|
||||
@PostMapping("/register/user")
|
||||
public Result<Boolean> registerUser(@RequestBody CommonBody commonBody);
|
||||
public Result<Boolean> registerUser(@RequestBody CommonBody commonBody,@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
|
||||
@PostMapping("/getEmailCode")
|
||||
public Result getEmailCode(@RequestParam("email") String email);
|
||||
public Result getEmailCode(@RequestParam("email") String email,@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -36,15 +36,14 @@ public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserServ
|
|||
}
|
||||
//--------------------------------------------------------------------------
|
||||
@Override
|
||||
public Result<Boolean> registerUser(CommonBody commonBody) {
|
||||
String email = commonBody.getEmail();
|
||||
String avatar = commonBody.getAvatar();
|
||||
public Result<Boolean> registerUser(CommonBody commonBody,String source) {
|
||||
|
||||
return Result.error("薪注册用户失败:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
//----------------------------------------
|
||||
@Override
|
||||
public Result getEmailCode(String email) {
|
||||
public Result getEmailCode(String email,String source) {
|
||||
return Result.error("获取邮箱验证码失败:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue