sendGift static method
送礼物
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;
}