fix: user preview API

This commit is contained in:
2026-01-21 03:41:58 +08:00
parent 90d092729a
commit 9a5278c3a7
2 changed files with 7 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ use serde::{Deserialize, Serialize};
#[serde(rename_all = "camelCase")]
pub struct GetUserPreviewApi {
pub user_id: u32,
pub client_id: &'static str,
pub token: Option<String>,
}
@@ -13,6 +14,7 @@ impl From<u32> for GetUserPreviewApi {
fn from(user_id: u32) -> Self {
Self {
user_id,
client_id: "A63E01C2805",
token: None,
}
}