bug fixed
This commit is contained in:
parent
e9e4a148fa
commit
ca75319f20
|
@ -69,7 +69,7 @@ impl Api {
|
||||||
let balance = r.balance.unwrap_or(0.00);
|
let balance = r.balance.unwrap_or(0.00);
|
||||||
let balance_bota = r.balance_bota.unwrap_or(0.00);
|
let balance_bota = r.balance_bota.unwrap_or(0.00);
|
||||||
let balance_sum = r.balance_sum.unwrap_or(0.00);
|
let balance_sum = r.balance_sum.unwrap_or(0.00);
|
||||||
let companies = r.companies.unwrap_or("".to_string());
|
let companies = r.companies;
|
||||||
|
|
||||||
Ok(models::GetBalanceForUserResponse {
|
Ok(models::GetBalanceForUserResponse {
|
||||||
balance,
|
balance,
|
||||||
|
|
|
@ -23,7 +23,7 @@ pub struct GetBalanceForUserResponse {
|
||||||
pub balance_bota: f64,
|
pub balance_bota: f64,
|
||||||
#[serde(rename = "balanceSum")]
|
#[serde(rename = "balanceSum")]
|
||||||
pub balance_sum: f64,
|
pub balance_sum: f64,
|
||||||
pub companies: String,
|
pub companies: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct GetBalanceForPartnerRequest {}
|
pub struct GetBalanceForPartnerRequest {}
|
||||||
|
|
|
@ -12,7 +12,7 @@ pub struct MemberModel {
|
||||||
///
|
///
|
||||||
pub balance_sum: f64,
|
pub balance_sum: f64,
|
||||||
///
|
///
|
||||||
pub companies: String,
|
pub companies: Option<String>,
|
||||||
///
|
///
|
||||||
pub oriental_play: String,
|
pub oriental_play: String,
|
||||||
///
|
///
|
||||||
|
|
|
@ -14,7 +14,7 @@ pub struct Member {
|
||||||
///
|
///
|
||||||
pub balance_sum: f64,
|
pub balance_sum: f64,
|
||||||
///
|
///
|
||||||
pub companies: String,
|
pub companies: Option<String>,
|
||||||
///
|
///
|
||||||
pub oriental_play: String,
|
pub oriental_play: String,
|
||||||
///
|
///
|
||||||
|
@ -58,7 +58,7 @@ pub struct ModifyMemberForBalance {
|
||||||
///
|
///
|
||||||
pub balance_sum: f64,
|
pub balance_sum: f64,
|
||||||
///
|
///
|
||||||
pub companies: String,
|
pub companies: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
|
@ -13,7 +13,7 @@ table! {
|
||||||
///
|
///
|
||||||
balance_sum -> Double,
|
balance_sum -> Double,
|
||||||
///
|
///
|
||||||
companies -> Text,
|
companies -> Nullable<Text>,
|
||||||
///
|
///
|
||||||
oriental_play -> Text,
|
oriental_play -> Text,
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue
Block a user