getOtherUserInfo static method

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

获取其他用户信息

Implementation

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