package cn.com.tenlion.materialstore.dao.materialstore;

import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import cn.com.tenlion.materialstore.pojo.bos.materialstore.MaterialStoreBO;
import cn.com.tenlion.materialstore.pojo.pos.materialstore.MaterialStorePO;
import cn.com.tenlion.materialstore.pojo.dtos.materialstore.MaterialStoreDTO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IMaterialStoreDao
 * @Description: CBC素材包
 * @Author: CodeFactory
 * @Date: 2021-08-24 11:13:38
 * @Version: 3.0
 **/
@Repository
public interface IMaterialStoreDao {

    /**
     * 新增CBC素材包
     *
     * @param params
     * @throws SaveException
     */
    void save(Map<String, Object> params) throws SaveException;

    /**
     * 删除CBC素材包
     *
     * @param params
     * @throws RemoveException
     */
    void remove(Map<String, Object> params) throws RemoveException;

    /**
     * 删除CBC素材包（物理）
     *
     * @param params
     * @throws RemoveException
     */
    void delete(Map<String, Object> params) throws RemoveException;

    /**
     * 修改CBC素材包
     *
     * @param params
     * @throws UpdateException
     */
    void update(Map<String, Object> params) throws UpdateException;

    /**
     * CBC素材包详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    MaterialStoreDTO get(Map<String, Object> params) throws SearchException;

    /**
     * CBC素材包详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    MaterialStoreBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * CBC素材包详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    MaterialStorePO getPO(Map<String, Object> params) throws SearchException;

    /**
     * CBC素材包列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MaterialStoreDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * CBC素材包列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MaterialStoreBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * CBC素材包列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MaterialStorePO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * CBC素材包统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}