package cn.com.tenlion.materialstore.dao.materialaudio;

import cn.com.tenlion.materialstore.pojo.bos.materialaudio.MaterialAudioBO;
import cn.com.tenlion.materialstore.pojo.dtos.materialaudio.MaterialAudioDTO;
import cn.com.tenlion.materialstore.pojo.pos.materialaudio.MaterialAudioPO;
import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: IMaterialAudioDao
 * @Description: 音频素材
 * @Author: CodeFactory
 * @Date: 2021-05-28 10:41:09
 * @Version: 3.0
 **/
@Repository
public interface IMaterialAudioDao {

    /**
     * 新增音频素材
     *
     * @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
     */
    MaterialAudioDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 音频素材详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    MaterialAudioBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 音频素材详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    MaterialAudioPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 音频素材列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MaterialAudioDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 音频素材列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MaterialAudioBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 音频素材列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MaterialAudioPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 音频素材统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

    void removeByMaterialId(Map<String, Object> params) throws RemoveException;

    void updateCheck(Map<String, Object> params) throws UpdateException;
}