POP 내역 총 보유 · 예약 · 사용 가능 3구분 · 온보딩 추천인 코드

This commit is contained in:
Sn-Kinos
2026-10-06 20:05:18 +09:00
parent 363c74736c
commit a04626b003
20 changed files with 235 additions and 29 deletions
+7 -1
View File
@@ -164,7 +164,13 @@ class SampleOnboardingRepository implements OnboardingRepository {
}) async => profile = (nickname: nickname, country: country, locale: locale);
@override
Future<void> attributeReferral(String code) async => referral = code;
Future<void> attributeReferral(String code) async {
// 서버 `fnReferralAttribute` 처럼 1인 1회 — 두 번째는 거절(E-POP-03).
if (referral != null) {
throw const BackendException('E-POP-03', '이미 처리된 추천입니다.');
}
referral = code;
}
@override
Future<List<OnboardingFandom>> fandoms({String query = ''}) async => [