From 0142b2ead31d95c9594464d7a6933925d1234a02 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Fri, 19 Aug 2022 00:09:33 +0000 Subject: [PATCH] field name of api is changed --- src/api/member_account/models.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/api/member_account/models.rs b/src/api/member_account/models.rs index bd2fadc..ef19d60 100644 --- a/src/api/member_account/models.rs +++ b/src/api/member_account/models.rs @@ -9,7 +9,9 @@ pub struct _GetBalanceForUserResponse { pub code: i64, pub msg: Option, pub balance: i64, + #[serde(rename = "balanceBota")] pub balance_bota: i64, + #[serde(rename = "balanceSum")] pub balance_sum: i64, pub companies: i64, } @@ -17,7 +19,9 @@ pub struct _GetBalanceForUserResponse { #[derive(Serialize, Deserialize, Debug)] pub struct GetBalanceForUserResponse { pub balance: i64, + #[serde(rename = "balanceBota")] pub balance_bota: i64, + #[serde(rename = "balanceSum")] pub balance_sum: i64, pub companies: i64, } @@ -29,12 +33,14 @@ pub struct _GetBalanceForPartnerResponse { pub code: i64, pub msg: Option, pub balance: i64, + #[serde(rename = "balanceBota")] pub balance_bota: i64, } #[derive(Serialize, Deserialize, Debug)] pub struct GetBalanceForPartnerResponse { pub balance: i64, + #[serde(rename = "balanceBota")] pub balance_bota: i64, }