package com.cm.manager.sms.dao.sms;

import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SaveException;
import com.cm.common.exception.SearchException;
import com.cm.common.exception.UpdateException;
import com.cm.common.result.SuccessResultList;
import com.cm.manager.sms.pojo.dtos.sms.SmsDTO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: ISmsDao
 * @Description: 短信
 * @Author: WenG
 * @Date: 2020-03-14 16:01
 * @Version: 1.0
 **/
@Repository
public interface ISmsDao {

    /**
     * 新增短信
     *
     * @param params
     * @throws SaveException
     */
    void saveSms(Map<String, Object> params) throws SaveException;

    /**
     * 删除短信
     *
     * @param params
     * @throws RemoveException
     */
    void removeSms(Map<String, Object> params) throws RemoveException;

    /**
     * 修改短信
     *
     * @param params
     * @throws UpdateException
     */
    void updateSms(Map<String, Object> params) throws UpdateException;

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

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