24 lines
528 B
V
24 lines
528 B
V
module main
|
|
|
|
import freeflowuniverse.herolib.hero.models.marketplace.core
|
|
|
|
|
|
pub struct MarketplaceCurrencyConfig {
|
|
pub mut:
|
|
base_currency string
|
|
supported_currencies []string
|
|
default_display_currency string
|
|
auto_update_rates bool
|
|
update_interval_minutes u32
|
|
fallback_rates map[string]f64 // Using f64 for Decimal
|
|
}
|
|
|
|
|
|
// User currency preferences
|
|
pub struct UserCurrencyPreference {
|
|
pub mut:
|
|
user_id string
|
|
preferred_currency string
|
|
updated_at u64 // Unix timestamp
|
|
}
|