|
|
@ -75,4 +75,14 @@ public class TokenController
|
|
|
|
sysLoginService.register(registerBody.getUsername(), registerBody.getPassword());
|
|
|
|
sysLoginService.register(registerBody.getUsername(), registerBody.getPassword());
|
|
|
|
return R.ok();
|
|
|
|
return R.ok();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("pdaLogin")
|
|
|
|
|
|
|
|
public R<?> pdaLogin(@RequestBody LoginBody form)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// 用户登录
|
|
|
|
|
|
|
|
LoginUser userInfo = sysLoginService.login(form.getUsername(), form.getPassword());
|
|
|
|
|
|
|
|
// 获取登录token
|
|
|
|
|
|
|
|
return R.ok(tokenService.createToken(userInfo));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|