state management refactoring

This commit is contained in:
2026-01-21 20:28:31 +08:00
parent 7f37a3f8c2
commit 8173f10937
18 changed files with 255 additions and 186 deletions

View File

@@ -18,7 +18,7 @@ impl DollsRemote {
.expect("App configuration error")
.clone(),
client: guard
.clients
.network.clients
.as_ref()
.expect("App configuration error")
.http_client

View File

@@ -18,7 +18,7 @@ impl FriendRemote {
.expect("App configuration error")
.clone(),
client: guard
.clients
.network.clients
.as_ref()
.expect("App configuration error")
.http_client

View File

@@ -18,7 +18,7 @@ impl HealthRemote {
.ok_or(HealthError::ConfigMissing("api_base_url"))?;
let client = guard
.clients
.network.clients
.as_ref()
.map(|c| c.http_client.clone())
.ok_or(HealthError::ConfigMissing("http_client"))?;

View File

@@ -20,7 +20,7 @@ impl SessionRemote {
.expect("App configuration error")
.clone(),
client: guard
.clients
.network.clients
.as_ref()
.expect("App configuration error")
.http_client

View File

@@ -18,7 +18,7 @@ impl UserRemote {
.expect("App configuration error")
.clone(),
client: guard
.clients
.network.clients
.as_ref()
.expect("App configuration error")
.http_client