package com.zksy.commonFile.service;

import com.zksy.common.core.domain.AjaxResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author sy
 * @date 2022/4/1 16:56
 */
public interface ManageCommonService {

    /**
     * TODO 文件上传(单个)
     * @param multipartFile
     * @return com.dhcc.basic.util.Message<java.lang.String>
     * @author Administrator
     * @date 2024/1/24 15:44:54
     */
    AjaxResult uploadFile(MultipartFile multipartFile, Long fid, String moduleName);

    /**
     * TODO 文件上传(返回文件地址)
     * @param multipartFile
     * @return java.lang.String
     * @author Administrator
     * @date 2024/4/23 16:52:32
     */
    String uploadFilePath(MultipartFile multipartFile);

    /**
     * TODO 文件批量上传
     * @param multipartFiles
     * @return com.dhcc.basic.util.Message<java.lang.String>
     * @author Administrator
     * @date 2024/1/24 15:44:54
     */
    AjaxResult uploadListFile(List<MultipartFile> multipartFiles, Long fid, String moduleName);

    /**
     * 删除文件
     * @param id
     * @return
     */
    AjaxResult deleteFile(String id);
}
