favVideo static method

Future<DataResult> favVideo(
  1. String? id,
  2. String? type
)

获取zb喜欢小视频信息

Implementation

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