import 'package:flutter/cupertino.dart';
import 'package:yumi/shared/data_sources/sources/repositories/sc_store_repository_imp.dart';
import 'package:yumi/shared/business_logic/models/res/store_list_res.dart';
import '../../shared/data_sources/models/enum/sc_currency_type.dart';
import '../../shared/data_sources/models/enum/sc_props_type.dart';

class ShopManager extends ChangeNotifier {
  List<StoreListRes> headdressList = [];
  List<StoreListRes> mountainsList = [];

  ///头饰
  void fetchHeaddressItems() async {
    headdressList = await SCStoreRepositoryImp().storeList(
      SCCurrencyType.GOLD.name,
      SCPropsType.AVATAR_FRAME.name,
    );
  }

  ///坐骑
  void fetchMountainsItems() async {
    mountainsList = await SCStoreRepositoryImp().storeList(
      SCCurrencyType.GOLD.name,
      SCPropsType.RIDE.name,
    );
  }
}
