package ink.wgink.module.file.dao.fileclient;

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.file.pojo.dtos.fileclient.FileClientDTO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IFileRemoteDao
 * @Description: 文件远程
 * @Author: wanggeng
 * @Date: 2022/8/4 20:53
 * @Version: 1.0
 */
@Repository
public interface IFileClientDao 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
     */
    FileClientDTO get(Map<String, Object> params) throws SearchException;

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

}
