store_repository.dart 874 B

123456789101112131415161718192021222324252627282930313233
  1. class StoreRepository {
  2. StoreRepository._();
  3. factory StoreRepository() {
  4. return storeRepository;
  5. }
  6. // Future<StoreIndexResponse> storeIndex() {
  7. // return atmobApi
  8. // .storeIndex(AppBaseRequest())
  9. // .then(HttpHandler.handle(false));
  10. // }
  11. //
  12. // Future<OrderPayResponse> orderPay(
  13. // int itemId, int payPlatform, int payMethod) {
  14. // return atmobApi
  15. // .orderPay(OrderPayRequest(itemId, payPlatform, payMethod))
  16. // .then(HttpHandler.handle(false));
  17. // }
  18. //
  19. // Future<int> orderStatus(String outTradeNo, {String? receiptData}) {
  20. // return atmobApi
  21. // .orderStatus(OrderStatusRequest(outTradeNo, receiptData))
  22. // .then(HttpHandler.handle(false))
  23. // .then((data) {
  24. // return data.payStatus;
  25. // });
  26. // }
  27. }
  28. final StoreRepository storeRepository = StoreRepository._();