buyVideo static method

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

获取zb购买小视频信息

Implementation

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