package shop.alien.store.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.http.ResponseEntity;
import shop.alien.entity.store.StoreDynamicDiscount;
import shop.alien.entity.store.vo.StoreDynamicDiscountVo;

/**
 * 商户动态折扣 服务类
 *
 * @author ssk
 * @since 2025-03-18
 */
public interface StoreDynamicDiscountService extends IService<StoreDynamicDiscount> {


    /**
     * 分页查询动态折扣
     *
     * @param pageNum  页数
     * @param pageSize 页容
     * @param status   审核状态, 0:待审核, 1:已通过, 2:已拒绝
     * @param date     创建时间
     * @return IPage<StoreDynamicDiscountVo>
     */
    IPage<StoreDynamicDiscountVo> getPage(Integer pageNum, Integer pageSize, Integer status, String date);

    /**
     * 导出Excel
     *
     * @return ResponseEntity
     */
    ResponseEntity<byte[]> exportToExcel();

}
