重新组织项目结构
This commit is contained in:
1 parent
28206cd50e
commit
4d7dde104d
15 files changed
+59
-83
No files matched your search
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// Created by Shell on 2026-06-18.
|
||||
//
|
||||
|
||||
#ifndef SEADISK_DIR_INFO_HPP
|
||||
#define SEADISK_DIR_INFO_HPP
|
||||
#include <string>
|
||||
#include <nlohmann/json.hpp>
|
||||
namespace seafile
|
||||
{
|
||||
/**
|
||||
* @brief Repository directory information.
|
||||
*/
|
||||
struct DirInfo final
|
||||
{
|
||||
/// Repository identifier.
|
||||
std::string repo_id;
|
||||
|
||||
/// Full directory path within the repository.
|
||||
std::string path;
|
||||
|
||||
/// Directory name.
|
||||
std::string name;
|
||||
|
||||
/// Last modification time in ISO 8601 format.
|
||||
std::string mtime;
|
||||
|
||||
/// Current user's permission (e.g. "r", "rw").
|
||||
std::string permission;
|
||||
|
||||
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(
|
||||
DirInfo,
|
||||
repo_id,
|
||||
path,
|
||||
name,
|
||||
mtime,
|
||||
permission)
|
||||
};
|
||||
}
|
||||
#endif //SEADISK_DIR_INFO_HPP
|
||||
Reference in new issue
Block a user