import cn.reghao.tnb.common.auth.LoginUser;
import cn.reghao.tnb.common.auth.UserContext;
import cn.reghao.tnb.file.app.FileApplication;
import cn.reghao.tnb.file.app.zdisk.db.mapper.DiskAlbumMapper;
import cn.reghao.tnb.file.app.zdisk.db.mapper.DiskFileMapper;
import cn.reghao.tnb.file.app.zdisk.model.vo.FolderTree;
import cn.reghao.tnb.file.app.zdisk.service.DiskFolderService;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;

import java.util.Collections;
import java.util.List;

/**
 * @author reghao
 * @date 2025-09-03 19:12:34
 */
@Slf4j
@ActiveProfiles("dev")
@SpringBootTest(classes = FileApplication.class)
public class DiskTest {
    @Autowired
    DiskAlbumMapper diskAlbumMapper;
    @Autowired
    DiskFileMapper diskFileMapper;

    @Autowired
    DiskFolderService diskFolderService;
    @Test
    public void diskTest() {
        LoginUser loginUser = new LoginUser(10001L, "loginId", Collections.emptySet());
        UserContext context = new UserContext(loginUser);

        List<FolderTree> list = diskFolderService.getFolderTree();
        System.out.println();
    }
}
