11 lines
432 B
Dart
11 lines
432 B
Dart
import '../models/product.dart';
|
|
|
|
// Interface for all platform services (WooCommerce, Etsy, Square)
|
|
abstract class PlatformService {
|
|
Future<List<Product>> fetchProducts({int page = 1, String search = ''});
|
|
Future<Product> fetchProduct(int id);
|
|
Future<Product> updateProduct(int id, Map<String, dynamic> data);
|
|
Future<dynamic> deleteProduct(int id);
|
|
// Future<void> syncInventory(String sku, int quantity); // For later
|
|
}
|