|
|
|
@ -77,6 +77,18 @@ public class AuthController extends CoreBaseController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/get-user-type")
|
|
|
|
|
@ApiOperation(value = "获取登录用户信息", notes = "获取当前登录用户账号详细信息")
|
|
|
|
|
public ResultBean getUserType() {
|
|
|
|
|
LOGGER.info("获取用户信息...lang:{}", AuthUtil.getSessionAttribute("languageCode"));
|
|
|
|
|
try {
|
|
|
|
|
CommonEnumUtil.USER_TYPE type = AuthUtil.getUserType();
|
|
|
|
|
return new ResultBean(true, "", type);
|
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
|
return new ResultBean(false, e.getErrorDetail() + "-[解决]" + e.getErrorSolution());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取登录用户信息
|
|
|
|
|