1e93280140
CI / build (push) Failing after 13m46s
- member.plan_expires_at + iap_purchase 테이블(중복 결제 방지) - POST /api/billing/google/verify: 구매 검증 후 PREMIUM 부여/갱신(만료 연장), 세션 plan 즉시 동기화 - GET /api/billing/products: 구독 상품(월간/연간) - 테스트 모드(billing.test-mode=true): test- 토큰 검증 없이 승인 → 전 과정 테스트 가능 - GooglePlayVerifier 인터페이스 + 스텁(실연동 지점), 실연동 시 구현체 교체 - 관리자 수동 plan 변경은 만료일 없이(영구), 결제는 만료일 부여 - 만료 자동 강등 스케줄러(매시), MemberResponse.planExpiresAt 노출 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
31 lines
895 B
Java
31 lines
895 B
Java
package com.sb.web.auth.mapper;
|
|
|
|
import com.sb.web.auth.domain.AuthSession;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
/**
|
|
* 세션 영속 백업(auth_session) 접근.
|
|
*/
|
|
@Mapper
|
|
public interface AuthSessionMapper {
|
|
|
|
int insert(AuthSession session);
|
|
|
|
AuthSession findByToken(@Param("token") String token);
|
|
|
|
int updateExpiry(@Param("token") String token, @Param("expiresAt") LocalDateTime expiresAt);
|
|
|
|
/** 프로필 변경 시 백업 세션의 표시 이름 동기화 */
|
|
int updateName(@Param("token") String token, @Param("name") String name);
|
|
|
|
/** 멤버십 변경 시 백업 세션의 plan 동기화 */
|
|
int updatePlan(@Param("token") String token, @Param("plan") String plan);
|
|
|
|
int delete(@Param("token") String token);
|
|
|
|
int deleteExpired(@Param("now") LocalDateTime now);
|
|
}
|