setRoomFollow static method

Future<DataResult> setRoomFollow(
  1. int? id
)

Room关注/取消

Implementation

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