package com.zsElectric.boot.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zsElectric.boot.business.model.entity.DiscountsActivity;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zsElectric.boot.business.model.query.DiscountsActivityQuery;
import com.zsElectric.boot.business.model.vo.DiscountsActivityVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 优惠活动Mapper接口
 *
 * @author zsElectric
 * @since 2025-12-20 16:16
 */
@Mapper
public interface DiscountsActivityMapper extends BaseMapper<DiscountsActivity> {

    /**
     * 获取优惠活动分页数据
     *
     * @param page        分页对象
     * @param queryParams 查询参数
     * @return {@link Page<DiscountsActivityVO>} 优惠活动分页列表
     */
    Page<DiscountsActivityVO> getDiscountsActivityPage(Page<DiscountsActivityVO> page, DiscountsActivityQuery queryParams);

}
