package cn.ezhizao.project.system.service.impl;

import cn.ezhizao.project.system.domain.SysFileStorage;
import cn.ezhizao.project.system.mapper.SysFileStorageMapper;
import cn.ezhizao.project.system.service.ISysFileStorageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 文件存储Service业务层处理
 *
 * @author ruoyi
 * @date 2023-11-09
 */
@Service
public class SysFileStorageServiceImpl  extends ServiceImpl<SysFileStorageMapper, SysFileStorage> implements ISysFileStorageService
{
    @Resource
    private SysFileStorageMapper sysFileStorageMapper;

    /**
     * 查询文件存储列表
     *
     * @param sysFileStorage 文件存储
     * @return 文件存储
     */
    @Override
    public List<SysFileStorage> getList(SysFileStorage sysFileStorage)
    {
        return sysFileStorageMapper.getList(sysFileStorage);
    }

    /**
     * 物理删除
     * @param sysFileStorage
     * @return 删除结果
     */
    @Override
    public int physicalDelete(SysFileStorage sysFileStorage){ return sysFileStorageMapper.physicalDelete(sysFileStorage); };

}
