getUserOnline static method

Future<DataResult> getUserOnline(
  1. String? id
)

获取用户信息-在线状态和名字

Implementation

static Future<DataResult> getUserOnline(String? id) async {
  Map other = {'id': id};
  var res = await BaseDao.fromBaseEncrypt(other, Address.getUserOnline());
  if (res.result) {
    var entity = UserOnline.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}