package com.artfess.rescue.file.manager;

import com.artfess.base.manager.BaseManager;
import com.artfess.rescue.file.model.BizRescueFileCommon;

import java.util.List;

/**
 * 文件公共信息表 服务类
 *
 * @author 系统管理员
 * @company 阿特菲斯信息技术有限公司
 * @since 2024-07-04
 */
public interface BizRescueFileCommonManager {


    /**
     * 根据公共ID批量预览minio附件
     *
     * @param ids 关联的公共ids
     * @return List<BizFileCommon>
     */
    List<BizRescueFileCommon> getFilePreviewLikeCommonIds(List<String> ids);

    /**
     * 根据公共ID批量预览minio附件
     * @return List<BizFileCommon>
     */
    List<BizRescueFileCommon> getFileByCommonId(String id);



    /**
     * 二维码的新增与维护
     * @param fileCommon
     * @return
     */
    void qrCodeSaveOrUpdate(BizRescueFileCommon fileCommon);

    /**
     * minio在线预览
     * @param fileName
     * @return
     */
    String minioPreviewFile(String fileName);


    /**
     * 根据当前用户预览二维码
     * @return
     */
    BizRescueFileCommon viewQrCode();

//    /**
//     * 根据公共ID批量删除文件信息,逻辑删除
//     *
//     * @param commonId 关联的公共id
//     * @return boolean 是否删除成功
//     */
//
//    boolean removeByCommonIds(String commonId);

//    /**
//     * 根据公共ID批量删除文件信息，真删除
//     *
//     * @param commonId 关联的公共id
//     * @return boolean 是否删除成功
//     */
//    boolean deleteByCommonIds(String commonId);

//    /**
//     * 根据id和COMMINID修改附件，包括已经删除的附件恢复
//     * @param fileCommon
//     */
//    void updateByCommons(BizRescueFileCommon fileCommon);
}
