package com.sckw.file.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.file.model.kwfFileInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.tomcat.jni.FileInfo;

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

/**
 * @author lfdc
 * @version 1.0
 * @className KwsFileInfoDao
 * @description
 * @company sckw
 * @date 2023-06-12 17:06:00
 */
@Mapper
public interface KwsFileInfoDao extends BaseMapper<kwfFileInfo> {

    /**
     * 新增
     * @param record
     * @return
     */
    @Override
    int insert(kwfFileInfo record);

    /**
     * 更新
     * @param record
     * @return
     */
    int update(FileInfo record);

    /**
     * 详情查询
     * @param id
     * @return
     */
    kwfFileInfo selectByKey(Long id);

    /**
     * 查询
     * @param params
     * @return
     * @throws Exception
     */
    List<kwfFileInfo> findList(Map<String, Object> params);
}
