package org.nl.system.service.tools;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.nl.common.domain.query.PageQuery;
import org.nl.system.service.tools.dao.ToolLocalStorage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.nl.system.service.tools.dto.ToolLocalStorageQuery;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import java.util.Set;

/**
 * <p>
 * 本地存储表 服务类
 * </p>
 *
 * @author generator
 * @since 2022-12-20
 */
public interface IToolLocalStorageService extends IService<ToolLocalStorage> {

    IPage<ToolLocalStorage> queryAll(ToolLocalStorageQuery criteria, PageQuery pageable);

    /**
     * 上传文件
     * @param name
     * @param file
     * @return
     */
    Object create(String name, MultipartFile file);

    /**
     * 修改文件
     * @param resources
     */
    void update(ToolLocalStorage resources);

    /**
     * 删除文件
     * @param ids
     */
    void deleteAll(Set<String> ids);
}
