From bedc8953d0727327a87a7e13927cf4d27f645279 Mon Sep 17 00:00:00 2001 From: liyunjia Date: Sun, 9 Jun 2024 12:39:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/src/vo/account.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/domain/src/vo/account.rs b/domain/src/vo/account.rs index 52bf89d..01b2ccb 100644 --- a/domain/src/vo/account.rs +++ b/domain/src/vo/account.rs @@ -4,15 +4,16 @@ use sqlx::types::JsonValue; #[derive(Debug, Clone, Deserialize, Serialize)] pub struct LoginAccount { pub username: String, - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(skip_serializing_if = "Option::is_none", rename = "displayName")] pub display_name: Option, - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(skip_serializing_if = "Option::is_none", rename = "avatarUrl")] pub avatar_url: Option, pub metadata: JsonValue, pub wallet: JsonValue, #[serde(skip_serializing_if = "Option::is_none")] pub email: Option, pub token: String, + #[serde(rename = "refreshToken")] pub refresh_token: String, }