sendGift static method

Future<DataResult> sendGift(
  1. String? giftId,
  2. String? anchorId, {
  3. int? type,
})

送礼物

Implementation

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