无语了
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include <map>
|
||||
#include "Gallery_Properties.h"
|
||||
#include <cstdint>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
@@ -17,8 +17,11 @@ struct Gallery_Open_Request {
|
||||
};
|
||||
using Gallery_Value = std::variant<bool, double, std::string>;
|
||||
struct Gallery_State {
|
||||
std::map<std::string, Gallery_Value, std::less<>> values;
|
||||
Gallery_Property_Model properties;
|
||||
};
|
||||
[[nodiscard]] Gallery_Value gallery_property_value(const Gallery_State& state, std::string_view id);
|
||||
[[nodiscard]] bool gallery_has_property(const Gallery_State& state, std::string_view id);
|
||||
[[nodiscard]] std::size_t gallery_property_count(const Gallery_State& state);
|
||||
struct Gallery_Patch_Result {
|
||||
std::optional<Gallery_State> candidate;
|
||||
std::string response_json;
|
||||
|
||||
Reference in New Issue
Block a user