43 lines
1.7 KiB
Dart
43 lines
1.7 KiB
Dart
class ApiConfig {
|
|
// 백엔드 API 기본 URL
|
|
// --dart-define=API_BASE_URL=... 로 오버라이드 가능. 기본값은 프로덕션.
|
|
static String get baseUrl => const String.fromEnvironment(
|
|
'API_BASE_URL',
|
|
defaultValue: 'https://lanebow.com/api',
|
|
);
|
|
|
|
// API 엔드포인트
|
|
static const String login = '/auth/login';
|
|
static const String register = '/auth/register';
|
|
static const String forgotPassword = '/auth/forgot-password';
|
|
static const String profile = '/users/profile';
|
|
|
|
// 클럽 관련 엔드포인트
|
|
static const String clubs = '/club';
|
|
static const String members = '/members';
|
|
static const String events = '/events';
|
|
static const String scores = '/scores';
|
|
|
|
// 구독 관련 엔드포인트
|
|
static const String subscriptions = '/subscriptions';
|
|
static const String subscriptionPlans = '/subscriptions/plans';
|
|
static const String currentSubscription = '/subscriptions/current';
|
|
static const String subscribeClub = '/subscriptions/subscribe';
|
|
static const String subscriptionPayments = '/subscriptions/payments';
|
|
static const String changePlan = '/subscriptions/change-with-features';
|
|
|
|
// 결제 관련 엔드포인트
|
|
static const String paymentRequest = '/subscriptions/payment/request';
|
|
static const String paymentSuccess = '/subscriptions/payment/success';
|
|
static const String paymentFail = '/subscriptions/payment/fail';
|
|
|
|
// 인앱 결제 검증 엔드포인트
|
|
static const String verifyReceipt = '/subscriptions/verify-receipt';
|
|
|
|
// 토큰 저장 키
|
|
static const String tokenKey = 'auth_token';
|
|
static const String userIdKey = 'user_id';
|
|
static const String userRoleKey = 'user_role';
|
|
static const String clubIdKey = 'club_id';
|
|
}
|