package ink.wgink.module.sms.dao.sms;

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.sms.pojo.dtos.sms.SmsDTO;
import ink.wgink.module.sms.pojo.pos.sms.SmsPO;
import org.springframework.stereotype.Repository;

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

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: ISmsDao
 * @Description: 短信
 * @Author: wanggeng
 * @Date: 2021/5/1 3:31 下午
 * @Version: 1.0
 */
@Repository
public interface ISmsDao 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
     */
    SmsDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 短信详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    SmsPO getPO(Map<String, Object> params) throws SearchException;

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

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

}
