use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
pub struct AccountContext {
#[serde(default)]
pub id: i32,
#[serde(default)]
pub nickname: String,
#[serde(default)]
pub avatar_id: i32,
#[serde(default)]
pub email: String,
#[serde(default)]
pub last_login_time: i64,
#[serde(default)]
pub last_login_ip_area: String,
#[serde(default)]
pub last_login_ip: String,
#[serde(default)]
pub channel_id: i32,
#[serde(default)]
pub total_recharge: f64,
#[serde(default)]
pub total_refund: f64,
}
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
pub struct MoneyContext {
#[serde(default)]
pub id: i32,
#[serde(default)]
pub money: f64,
#[serde(default)]
pub money_cache: f64,
#[serde(default)]
pub money_safe: f64,
#[serde(default)]
pub money_gift: f64,
#[serde(default)]
pub money_gift_safe: f64,
#[serde(default)]
pub amount_of_money_gift: f64,
#[serde(default)]
pub amount_of_wash_code: f64,
#[serde(default)]
pub consume_money: f64,
#[serde(default)]
pub consume_money_gift: f64,
#[serde(default)]
pub income_money: f64,
}
#[derive(Clone, Default, Debug, Deserialize, Serialize)]
pub struct AccountLimit {
pub recharge_limit_day: f64,
pub recharge_limit_week: f64,
pub recharge_limit_month: f64,
pub bet_limit_day: f64,
pub bet_limit_week: f64,
pub bet_limit_month: f64,
pub loss_limit_day: f64,
pub loss_limit_week: f64,
pub loss_limit_month: f64,
}
#[derive(Clone, Deserialize, Serialize, Debug, Default)]
pub struct AccountInfoRet {
#[serde(default)]
pub account_content: AccountContext,
#[serde(default)]
pub money_content: MoneyContext,
#[serde(default)]
pub vip_level: i32,
#[serde(default)]
pub reminder_time_sec: i64,
#[serde(default)]
pub account_limit: AccountLimit,
}