package com.seer.teach.mall.service;

import com.seer.teach.common.PageListBean;
import com.seer.teach.mall.entity.BrowsingHistoryEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.seer.teach.mall.request.BrowsingHistoryPageReq;
import com.seer.teach.mall.request.BrowsingSaveReq;
import com.seer.teach.mall.response.BrowsingHistoryPageResp;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Captain
 * @since 2025-06-18
 */
public interface BrowsingHistoryService extends IService<BrowsingHistoryEntity> {

    /**
     * 新增浏览足迹
     * @param params
     * @return
     */
    void addBrowsingHistory(BrowsingSaveReq params);

    /**
     * 删除浏览足迹
     * @param ids
     */
    void deleteBrowsingHistory(List<Integer> ids);

    /**
     * 清空所有浏览足迹
     */
    void clearBrowsingHistory();

    /**
     * 分页查询浏览足迹
     * @param params
     * @return
     */
    PageListBean<BrowsingHistoryPageResp> getBrowsingHistoryPage(BrowsingHistoryPageReq params);
}
