mirror of
https://github.com/serty2005/rmser.git
synced 2026-02-04 19:02:33 -06:00
добавлен биллинг и тарифы
добавлена интеграция с юкасса
This commit is contained in:
@@ -15,6 +15,7 @@ type Config struct {
|
||||
OCR OCRConfig
|
||||
Telegram TelegramConfig
|
||||
Security SecurityConfig
|
||||
YooKassa YooKassaConfig `mapstructure:"yookassa"`
|
||||
}
|
||||
|
||||
type AppConfig struct {
|
||||
@@ -54,6 +55,11 @@ type SecurityConfig struct {
|
||||
SecretKey string `mapstructure:"secret_key"` // 32 bytes for AES-256
|
||||
}
|
||||
|
||||
type YooKassaConfig struct {
|
||||
ShopID string `mapstructure:"shop_id"`
|
||||
SecretKey string `mapstructure:"secret_key"`
|
||||
}
|
||||
|
||||
// LoadConfig загружает конфигурацию из файла и переменных окружения
|
||||
func LoadConfig(path string) (*Config, error) {
|
||||
viper.AddConfigPath(path)
|
||||
|
||||
Reference in New Issue
Block a user