getUserInfo method
获取用户信息
Implementation
Future<CloudBaseUserInfo> getUserInfo() async {
CloudBaseResponse res =
await CloudBaseRequest(super.core).post('auth.getUserInfo', {});
// if (res == null) {
// throw CloudBaseException(
// code: CloudBaseExceptionCode.NULL_RESPONES,
// message: "unknown error, res is null");
// }
if (res.code != null) {
throw CloudBaseException(code: res.code!, message: res.message);
}
return CloudBaseUserInfo(res.data);
}