package com.jeesharp.business.modules.marketing.couponVerifyLog.mapper;

import com.jeesharp.business.modules.marketing.couponVerifyLog.entity.MemberCouponVerifyLog;
import com.jeesharp.business.modules.marketing.couponVerifyLog.vo.MemberCouponVerifyLogQueryVO;
import com.jeesharp.framework.mybatis.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员券核销流水 Mapper，对应表 {@code app_member_coupon_verify_log}。
 *
 * @author jeesharp
 * @since 2026-06-25
 */
@Mapper
public interface MemberCouponVerifyLogMapper extends BaseMapper<MemberCouponVerifyLog, MemberCouponVerifyLogQueryVO> {

    /**
     * 按核销令牌查询（幂等）。
     */
    MemberCouponVerifyLog getByVerifyToken(@Param("verifyToken") String verifyToken);
}
