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

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.materialmap.MaterialMapBO;
import cn.com.tenlion.materialstore.pojo.pos.materialmap.MaterialMapPO;
import cn.com.tenlion.materialstore.pojo.dtos.materialmap.MaterialMapDTO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IMaterialMapDao
 * @Description: 经纬度素材
 * @Author: CodeFactory
 * @Date: 2021-05-28 11:01:59
 * @Version: 3.0
 **/
@Repository
public interface IMaterialMapDao {

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

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

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

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

    /**
     * 经纬度素材详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    MaterialMapDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 经纬度素材详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    MaterialMapBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 经纬度素材详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    MaterialMapPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 经纬度素材列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MaterialMapDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 经纬度素材列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MaterialMapBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 经纬度素材列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MaterialMapPO> listPO(Map<String, Object> params) throws SearchException;

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

    void removeByMaterialId(Map<String, Object> params) throws RemoveException;

    void updateCheck(Map<String, Object> params) throws UpdateException;

}