package com.jeesharp.business.modules.mall.service;

import com.jeesharp.business.modules.mall.entity.MallSearchLog;
import com.jeesharp.business.modules.mall.vo.MallSearchLogQueryVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

import java.util.List;
import java.util.Map;

/**
 * 搜索历史 Service 接口
 */
public interface MallSearchLogService extends BaseInterface<MallSearchLog, MallSearchLogQueryVO> {

    void createSearchLog(MallSearchLog entity);

    void updateSearchLog(MallSearchLog entity);
void recordSearchHistory(String memberId, String keyword);

    List<String> getUserSearchHistory(String memberId);

    List<Map<String, Object>> getHotSearchWords();

    void clearUserSearchHistory(String memberId);
}
