33 lines
597 B
C++
33 lines
597 B
C++
//
|
|
// Created by Shell on 2026-06-18.
|
|
//
|
|
|
|
#ifndef SEADISK_DEFAULT_REPO_HPP
|
|
#define SEADISK_DEFAULT_REPO_HPP
|
|
#include <optional>
|
|
#include <string>
|
|
#include <nlohmann/json.hpp>
|
|
|
|
namespace seafile
|
|
{
|
|
/**
|
|
* default repo response
|
|
*/
|
|
struct DefaultRepo final
|
|
{
|
|
/**
|
|
* indicates if default repo exists
|
|
*/
|
|
bool exists = false;
|
|
|
|
/**
|
|
* default repo id
|
|
*/
|
|
std::optional<std::string> repo_id;
|
|
|
|
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(DefaultRepo, exists, repo_id);
|
|
};
|
|
}
|
|
|
|
#endif //SEADISK_DEFAULT_REPO_HPP
|