chore: build

This commit is contained in:
2026-06-12 13:33:07 +02:00
parent 20da2a560f
commit 7f09400e79
8 changed files with 18 additions and 181 deletions
+1 -8
View File
@@ -1,11 +1,5 @@
package models
// TelegramBotConfig représente un bot de notification configuré par l'admin
type TelegramBotConfig struct {
Token string `json:"token"`
Username string `json:"username"`
}
type PostalZone struct {
Name string `json:"name"`
MinAmount float64 `json:"min_amount"`
@@ -100,8 +94,7 @@ type AppSettings struct {
PostalZones []PostalZone `json:"postal_zones"` // zones de livraison avec minimum de commande
TelegramBotToken string `json:"telegram_bot_token"` // token du bot Telegram (BotFather) — pour le webhook de liaison
TelegramBotUsername string `json:"telegram_bot_username"` // username du bot (sans @)
TelegramNotificationsEnabled bool `json:"telegram_notifications_enabled"` // activer/désactiver les notifications Telegram
TelegramNotifBots []TelegramBotConfig `json:"telegram_notif_bots"` // bots de notification avec failover automatique
TelegramNotificationsEnabled bool `json:"telegram_notifications_enabled"` // activer/désactiver les notifications Telegram
DeliveryMode DeliveryModeConfig `json:"delivery_mode"` // mode d'assignation des livreurs
ShopName string `json:"shop_name"` // nom affiché dans la sidebar du site client
Telegram2FAEnabled bool `json:"telegram_2fa_enabled"` // activer/désactiver l'authentification à deux facteurs