...
This commit is contained in:
23
specs/models_marketplace/main/config.v
Normal file
23
specs/models_marketplace/main/config.v
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user