package vip.xiaonuo.disk.service;

import com.alibaba.fastjson2.JSON;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import vip.xiaonuo.disk.api.IShareFileService;
import vip.xiaonuo.disk.api.IShareService;
import vip.xiaonuo.disk.domain.Share;
import vip.xiaonuo.disk.domain.ShareFile;
import vip.xiaonuo.disk.domain.UserFile;
import vip.xiaonuo.disk.mapper.ShareFileMapper;
import vip.xiaonuo.disk.mapper.ShareMapper;
import vip.xiaonuo.disk.mapper.UserFileMapper;
import vip.xiaonuo.disk.vo.share.ShareFileListVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

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

@Slf4j
@Service
@Transactional(rollbackFor=Exception.class)
public class ShareFileService extends ServiceImpl<ShareFileMapper, ShareFile> implements IShareFileService {
    @Resource
    ShareFileMapper shareFileMapper;

    @Override
    public List<ShareFileListVO> selectShareFileList(String shareBatchNum, String filePath) {
        return shareFileMapper.selectShareFileList(shareBatchNum, filePath);
    }

}
