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

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.bos.userlocation.UserLocationBO;
import ink.wgink.module.map.pojo.dtos.userlocation.UserLocationDTO;
import ink.wgink.module.map.pojo.pos.userlocation.UserLocationPO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IUserLocationDao
 * @Description: 用户定位
 * @Author: CodeFactory
 * @Date: 2021-10-29 15:37:01
 * @Version: 3.0
 **/
@Repository
public interface IUserLocationDao 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 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
     */
    UserLocationDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 用户定位详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    UserLocationBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 用户定位详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    UserLocationPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 用户定位列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<UserLocationDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 用户定位列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<UserLocationBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 用户定位列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<UserLocationPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 用户定位统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}