package cn.com.tenlion.systembase.dao.line;

import cn.com.tenlion.systembase.pojo.bos.line.LineBO;
import cn.com.tenlion.systembase.pojo.dtos.line.LineDTO;
import cn.com.tenlion.systembase.pojo.pos.line.LinePO;
import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: ILineDao
 * @Description: 护路护线
 * @Author: CodeFactory
 * @Date: 2021-10-13 11:32:20
 * @Version: 3.0
 **/
@Repository
public interface ILineDao {

    /**
     * 新增护路护线
     *
     * @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
     */
    LineDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 护路护线详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    LineBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 护路护线详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    LinePO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 护路护线列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<LineDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 护路护线列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<LineBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 护路护线列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<LinePO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 护路护线统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}