perf: cache for players scraping

This commit is contained in:
mokurin000
2025-07-30 19:06:17 +08:00
parent 19a0d53624
commit 5ad0135deb
8 changed files with 136 additions and 16 deletions

View File

@@ -4,3 +4,5 @@ pub mod title;
mod error;
pub use error::ApiError;
pub use bincode;

View File

@@ -1,5 +1,6 @@
use std::fmt::Display;
use bincode::{Decode, Encode};
use serde::{Deserialize, Serialize};
#[derive(Serialize)]
@@ -8,10 +9,10 @@ pub struct GetUserPreviewApi {
pub user_id: u32,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)]
#[serde(rename_all = "camelCase")]
pub struct GetUserPreviewApiResp {
pub user_id: i64,
pub user_id: u32,
pub user_name: String,
pub is_login: bool,
pub last_rom_version: String,