bug fixed

This commit is contained in:
병준 박 2022-08-30 09:14:07 +00:00
parent e9e4a148fa
commit ca75319f20
5 changed files with 6 additions and 6 deletions

View File

@ -69,7 +69,7 @@ impl Api {
let balance = r.balance.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 companies = r.companies.unwrap_or("".to_string());
let companies = r.companies;
Ok(models::GetBalanceForUserResponse {
balance,

View File

@ -23,7 +23,7 @@ pub struct GetBalanceForUserResponse {
pub balance_bota: f64,
#[serde(rename = "balanceSum")]
pub balance_sum: f64,
pub companies: String,
pub companies: Option<String>,
}
pub struct GetBalanceForPartnerRequest {}

View File

@ -12,7 +12,7 @@ pub struct MemberModel {
///
pub balance_sum: f64,
///
pub companies: String,
pub companies: Option<String>,
///
pub oriental_play: String,
///

View File

@ -14,7 +14,7 @@ pub struct Member {
///
pub balance_sum: f64,
///
pub companies: String,
pub companies: Option<String>,
///
pub oriental_play: String,
///
@ -58,7 +58,7 @@ pub struct ModifyMemberForBalance {
///
pub balance_sum: f64,
///
pub companies: String,
pub companies: Option<String>,
}
///

View File

@ -13,7 +13,7 @@ table! {
///
balance_sum -> Double,
///
companies -> Text,
companies -> Nullable<Text>,
///
oriental_play -> Text,
///