package ink.wgink.module.map.dao.grid;

import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import ink.wgink.interfaces.init.IInitBaseTable;
import ink.wgink.module.map.pojo.dtos.grid.GridGroupDTO;
import ink.wgink.module.map.pojo.pos.grid.GridGroupPO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IGridGroupDao
 * @Description: 网格组
 * @Author: wanggeng
 * @Date: 2021/10/19 10:26 下午
 * @Version: 1.0
 */
@Repository
public interface IGridGroupDao extends IInitBaseTable {

    /**
     * 新增网格组
     *
     * @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 UpdateException
     */
    void update(Map<String, Object> params) throws UpdateException;

    /**
     * 网格组详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    GridGroupDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 网格组详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    GridGroupPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 网格组列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<GridGroupDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 网格组列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<GridGroupPO> listPO(Map<String, Object> params) throws SearchException;
}
