bug fix
This commit is contained in:
1 parent
ae3a25857f
commit
7296b3096a
13 files changed
+467
-206
No files matched your search
@@ -4,6 +4,7 @@
|
||||
|
||||
#ifndef SEADISK_FILE_CONTEXT_HPP
|
||||
#define SEADISK_FILE_CONTEXT_HPP
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
namespace seafile::fs
|
||||
{
|
||||
|
||||
@@ -18,8 +18,6 @@ namespace seafile::fs
|
||||
class SeafileFileSystem final
|
||||
{
|
||||
using SeafileException = api::SeafileException;
|
||||
using RepoInfo = storage::RepoInfo;
|
||||
using RepoEntry = storage::RepoEntry;
|
||||
|
||||
std::unique_ptr<SeafileStore> store;
|
||||
std::wstring volume_label;
|
||||
|
||||
@@ -29,8 +29,6 @@ namespace seafile::fs
|
||||
|
||||
tl::expected<void, api::SeafileException> auth();
|
||||
|
||||
[[nodiscard]] tl::expected<std::string, api::SeafileException> defaultRepoId() const;
|
||||
|
||||
///初始化数据库信息
|
||||
[[nodiscard]] tl::expected<void, api::SeafileException> init();
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// Created by Shell on 2026-07-30.
|
||||
//
|
||||
|
||||
#ifndef SEADISK_SETTING_HPP
|
||||
#define SEADISK_SETTING_HPP
|
||||
#include <string>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
namespace seafile::fs
|
||||
{
|
||||
struct Setting final
|
||||
{
|
||||
std::string server;
|
||||
std::string user;
|
||||
std::string password;
|
||||
std::string mount_point;
|
||||
std::string mount_label;
|
||||
|
||||
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(Setting, server, user, password, mount_point, mount_label);
|
||||
};
|
||||
}
|
||||
#endif //SEADISK_SETTING_HPP
|
||||
Reference in new issue
Block a user