initGift static method

Future<DataResult> initGift()

配置数据-新礼物列表

Implementation

static Future<DataResult> initGift() async {
  var res = await BaseDao.fromBaseJson({}, Address.initGift(), token: false);
  if (res.result) {
    var entity = InitGiftEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}