package shop.alien.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import shop.alien.entity.store.StoreDynamicDiscountReceiveLog;

/**
 * 商户动态折扣领取记录 服务类
 *
 * @author ssk
 * @since 2025-03-18
 */
public interface StoreDynamicDiscountReceiveLogService extends IService<StoreDynamicDiscountReceiveLog> {

    /**
     * 用户参与活动
     *
     * @param discountId 折扣活动id
     * @param userId     用户id
     * @return boolean
     */
    boolean addLog(Integer discountId, Integer userId);

    /**
     * 用户领取折扣
     *
     * @param discountId 折扣活动id
     * @param userId     用户id
     * @return boolean
     */
    boolean userReceive(Integer discountId, Integer userId);

}
