/**
* 根据id查询用户信息
*
* @param id
* @return
*/
@GetMapping("/{id}")
public R<Users> getById(@PathVariable Long id) {
log.info("根据id查询信息...");
Users users = usersService.getById(id);
if (users != null) {
return R.success(users);
}
return R.error("没有查询到对应的用户信息");
}