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

import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import cn.com.tenlion.systembase.pojo.bos.teamuser.TeamUserBO;
import cn.com.tenlion.systembase.pojo.pos.teamuser.TeamUserPO;
import cn.com.tenlion.systembase.pojo.dtos.teamuser.TeamUserDTO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: ITeamUserDao
 * @Description: 综治队伍
 * @Author: CodeFactory
 * @Date: 2021-10-11 17:26:41
 * @Version: 3.0
 **/
@Repository
public interface ITeamUserDao {

    /**
     * 新增综治队伍
     *
     * @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
     */
    TeamUserDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 综治队伍详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    TeamUserBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 综治队伍详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    TeamUserPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 综治队伍列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<TeamUserDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 综治队伍列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<TeamUserBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 综治队伍列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<TeamUserPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 综治队伍统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}