package com.qmth.sop.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.sop.business.bean.params.SopQuickSearchParam;
import com.qmth.sop.business.entity.TBSopQuickSearch;
import com.qmth.sop.common.enums.SopQuickSearchTypeEnum;
import com.qmth.sop.common.enums.TFCustomTypeEnum;

import java.util.List;

/**
 * <p>
 * sop快捷搜索表 服务类
 * </p>
 *
 * @author wangliang
 * @since 2024-05-21
 */
public interface TBSopQuickSearchService extends IService<TBSopQuickSearch> {

    /**
     * sop快捷搜索列表
     *
     * @param type
     * @param contentType
     * @return
     */
    List<TBSopQuickSearch> list(TFCustomTypeEnum type, SopQuickSearchTypeEnum contentType);

    /**
     * sop快捷搜索保存
     *
     * @param sopQuickSearchParam
     * @return
     */
    boolean save(SopQuickSearchParam sopQuickSearchParam);

    /**
     * 根据id删除
     *
     * @param id
     * @return
     */
    boolean delete(Long id);
}
