无语了

This commit is contained in:
2026-08-11 17:06:17 +08:00
parent de88da9a8a
commit 542637ede4
7 changed files with 843 additions and 529 deletions
+5 -2
View File
@@ -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;