perf: cache for players scraping
This commit is contained in:
@@ -4,3 +4,5 @@ pub mod title;
|
||||
|
||||
mod error;
|
||||
pub use error::ApiError;
|
||||
|
||||
pub use bincode;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user