videoInfo static method

Future<DataResult> videoInfo(
  1. String? videoId
)

获取视频详细信息

Implementation

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