clean seafile api
This commit is contained in:
1 parent
133424f5f8
commit
3e4694ceb5
14 files changed
+476
-290
No files matched your search
@@ -23,8 +23,6 @@ namespace seafile::fs
|
||||
|
||||
|
||||
std::string repo_id;
|
||||
std::string token;
|
||||
TokenType token_type = TokenType::TOKEN;
|
||||
std::shared_ptr<ISeaFileApi> api;
|
||||
std::wstring volume_label;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace seafile::fs
|
||||
[[nodiscard]] tl::expected<std::string, api::SeafileException> defaultRepoId() const;
|
||||
|
||||
///初始化数据库信息
|
||||
[[nodiscard]] tl::expected<void, api::SeafileException> init() const;
|
||||
[[nodiscard]] tl::expected<void, api::SeafileException> init();
|
||||
|
||||
/// 检查是否已经更新到最新
|
||||
/// @return true 已经最新,false 需要更新
|
||||
@@ -39,7 +39,19 @@ namespace seafile::fs
|
||||
tl::expected<void, api::SeafileException> checkAndSync(const std::string& repo_id);
|
||||
|
||||
/// 同步元数据
|
||||
[[nodiscard]] tl::expected<void, api::SeafileException> sync(const std::string& repo_id) const;
|
||||
[[nodiscard]] tl::expected<void, api::SeafileException> syncRepoEntry(const std::string& repo_id) const;
|
||||
|
||||
/// 同步用户信息
|
||||
tl::expected<void, api::SeafileException> syncUserInfo();
|
||||
|
||||
/// 同步repo信息
|
||||
tl::expected<void, api::SeafileException> syncRepos();
|
||||
|
||||
/// 同步
|
||||
tl::expected<void, api::SeafileException> sync();
|
||||
|
||||
std::filesystem::path storePath() const;
|
||||
|
||||
|
||||
/// 获取路径信息
|
||||
/// @param path 路径
|
||||
@@ -51,10 +63,8 @@ namespace seafile::fs
|
||||
struct Database;
|
||||
std::unique_ptr<Database> database;
|
||||
std::string api_server;
|
||||
std::string user;
|
||||
std::string username;
|
||||
std::string password;
|
||||
std::string token;
|
||||
api::TokenType token_type = api::TokenType::TOKEN;
|
||||
api::SeaFileApi api;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user