持久化认证状态到 SpacetimeDB 正式表

This commit is contained in:
2026-04-24 16:09:20 +08:00
parent 04288d4a40
commit 4e1c0462a4
29 changed files with 2271 additions and 7341 deletions

View File

@@ -1,4 +1,5 @@
use super::*;
use crate::mapper::*;
impl SpacetimeClient {
pub async fn create_puzzle_agent_session(
@@ -28,7 +29,6 @@ impl SpacetimeClient {
.await
}
pub async fn get_puzzle_agent_session(
&self,
session_id: String,
@@ -53,7 +53,6 @@ impl SpacetimeClient {
.await
}
pub async fn submit_puzzle_agent_message(
&self,
input: PuzzleAgentMessageSubmitRecordInput,
@@ -80,7 +79,6 @@ impl SpacetimeClient {
.await
}
pub async fn finalize_puzzle_agent_message(
&self,
input: PuzzleAgentMessageFinalizeRecordInput,
@@ -110,7 +108,6 @@ impl SpacetimeClient {
.await
}
pub async fn compile_puzzle_agent_draft(
&self,
session_id: String,
@@ -137,7 +134,6 @@ impl SpacetimeClient {
.await
}
pub async fn save_puzzle_generated_images(
&self,
input: PuzzleGeneratedImagesSaveRecordInput,
@@ -163,7 +159,6 @@ impl SpacetimeClient {
.await
}
pub async fn select_puzzle_cover_image(
&self,
input: PuzzleSelectCoverImageRecordInput,
@@ -189,7 +184,6 @@ impl SpacetimeClient {
.await
}
pub async fn publish_puzzle_work(
&self,
input: PuzzlePublishRecordInput,
@@ -219,7 +213,6 @@ impl SpacetimeClient {
.await
}
pub async fn list_puzzle_works(
&self,
owner_user_id: String,
@@ -239,7 +232,6 @@ impl SpacetimeClient {
.await
}
pub async fn get_puzzle_work_detail(
&self,
profile_id: String,
@@ -260,7 +252,6 @@ impl SpacetimeClient {
.await
}
pub async fn update_puzzle_work(
&self,
input: PuzzleWorkUpsertRecordInput,
@@ -289,7 +280,6 @@ impl SpacetimeClient {
.await
}
pub async fn list_puzzle_gallery(
&self,
) -> Result<Vec<PuzzleWorkProfileRecord>, SpacetimeClientError> {
@@ -306,7 +296,6 @@ impl SpacetimeClient {
.await
}
pub async fn get_puzzle_gallery_detail(
&self,
profile_id: String,
@@ -327,7 +316,6 @@ impl SpacetimeClient {
.await
}
pub async fn start_puzzle_run(
&self,
input: PuzzleRunStartRecordInput,
@@ -352,7 +340,6 @@ impl SpacetimeClient {
.await
}
pub async fn get_puzzle_run(
&self,
run_id: String,
@@ -376,7 +363,6 @@ impl SpacetimeClient {
.await
}
pub async fn swap_puzzle_pieces(
&self,
input: PuzzleRunSwapRecordInput,
@@ -402,7 +388,6 @@ impl SpacetimeClient {
.await
}
pub async fn drag_puzzle_piece_or_group(
&self,
input: PuzzleRunDragRecordInput,
@@ -430,7 +415,6 @@ impl SpacetimeClient {
.await
}
pub async fn advance_puzzle_next_level(
&self,
input: PuzzleRunNextLevelRecordInput,
@@ -454,6 +438,4 @@ impl SpacetimeClient {
})
.await
}
}