package com.bonus.system.file.dao;

import com.bonus.system.att.entity.AttDataDetailsBean;
import com.bonus.system.file.entity.FileSourceVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @className:FileUploadDao
 * @author:cwchen
 * @date:2025-02-19-14:48
 * @version:1.0
 * @description:文件上传
 */
@Repository(value = "FileUploadDao")
public interface FileUploadDao {

    /**
     * 新增资源文件
     * @param list
     * @return void
     * @author cwchen
     * @date 2025/2/19 15:15
     */
    void addFileResource(List<FileSourceVo> list);

    /**
     * 删除资源文件
     * @param list
     * @return void
     * @author cwchen
     * @date 2025/2/19 15:16
     */
    void delFileResource(@Param("list") List<String> list,@Param("sourceType") int sourceType);

    /**
     * 获取考勤修改附件
     * @param list
     * @return List<FilesVo>
     * @author cwchen
     * @date 2025/2/19 17:11
     */
    List<AttDataDetailsBean.FilesVo> getFiles(List<String> list);
}
