// ============================================================
// MerchantProvider — 商家 Riverpod Providers
// ============================================================

import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../../../core/network/api_client.dart';

final merchantInfoProvider = FutureProvider.autoDispose((ref) async {
  final api = ApiClient.instance;
  final resp = await api.get('/api/v1/merchants/me');
  return resp.data['data'] as Map<String, dynamic>?;
});

final merchantRedemptionsProvider = FutureProvider.autoDispose((ref) async {
  final api = ApiClient.instance;
  final resp = await api.get('/api/v1/merchants/me/redemptions');
  return resp.data['data'];
});
