package com.yonge.cooleshow.biz.dal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yonge.cooleshow.biz.dal.dto.search.HotSearchSearch;
import com.yonge.cooleshow.biz.dal.entity.HotSearch;
import com.yonge.cooleshow.biz.dal.vo.HotSearchVo;

/**
 * 热门搜索表 服务类
 * @author liweifan
 * @date 2022-06-15
 */
public interface HotSearchService extends IService<HotSearch>  {

    /**
     * 修改热门搜索
     *
     * @param hotSearch
     * @return
     */
    boolean update(HotSearch hotSearch);

    /**
     * 修改热门搜索的状态
     *
     * @param hotSearchId 热门词id
     * @return
     */
    boolean status(Long hotSearchId);

    /**
     * 分页查询
     *
     * @param page
     * @param query
     * @return
     */
    IPage<HotSearchVo> selectPage(IPage<HotSearchVo> page, HotSearchSearch query);
}