package ink.wgink.login.app.dao.appdeviceuser;

import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.interfaces.init.IInitBaseTable;
import ink.wgink.login.app.pojo.dtos.appdeviceuser.AppDeviceUserDTO;
import ink.wgink.login.app.pojo.pos.appdeviceuser.AppDeviceUserPO;
import org.springframework.stereotype.Repository;

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

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: IAppDeviceUserDao
 * @Description: app设备用户
 * @Author: wanggeng
 * @Date: 2021/4/7 4:23 下午
 * @Version: 1.0
 */
@Repository
public interface IAppDeviceUserDao extends IInitBaseTable {

    /**
     * 保存
     *
     * @param params
     * @throws SaveException
     */
    void save(Map<String, Object> params) throws SaveException;

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

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

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

}
