package com.yonge.cooleshow.bbs.dao;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import com.yonge.cooleshow.bbs.entity.BbsConfigLabel;
import com.yonge.cooleshow.bbs.vo.BbsConfigLabelVo;
import com.yonge.cooleshow.bbs.dto.search.BbsConfigLabelSearch;

public interface BbsConfigLabelDao extends BaseMapper<BbsConfigLabel> {
    /**
     * 查询详情
     *
     * @author liweifan
     * @date 2022-06-09 17:27:11
     * @return: com.yonge.cooleshow.bbs.vo.BbsConfigLabelVo
     */
    BbsConfigLabelVo detail(@Param("id") Long id);

    /**
     * 分页查询
     *
     * @author liweifan
     * @date 2022-06-09 17:27:11
     * @return: com.yonge.cooleshow.bbs.vo.BbsConfigLabelVo
     */
    List<BbsConfigLabelVo> selectPage(@Param("page") IPage page, @Param("param") BbsConfigLabelSearch bbsConfigLabel);

    /**
     * 查询所有
     *
     * @param delFlag 删除状态
     * @return
     */
    List<BbsConfigLabel> selectAll(Integer delFlag);

    /**
     * 删除
     *
     * @param query
     * @param userId
     */
    void updateFlagByIds(@Param("param") BbsConfigLabelSearch query, @Param("userId") Long userId);
}