package com.hfkj.service;

import com.hfkj.entity.BsStoreDiscountActivityPartakeUserRecord;

import java.util.Date;

/**
 * @className: BsStoreDiscountActivityPartakeUserRecordService
 * @author: HuRui
 * @date: 2023/3/24
 **/
public interface BsStoreDiscountActivityPartakeUserRecordService {

    /**
     * 增加记录
     * @param record
     */
    void insertRecord(BsStoreDiscountActivityPartakeUserRecord record);

    /**
     * 查询参与次数
     * @param phone
     * @param discountActivityId
     * @param startTime
     * @param endTime
     * @return
     */
    Long getPartakeNum(String phone, Long discountActivityId, Date startTime, Date endTime);
}
