package config // ExitKiosk 是出口自助终端(扫码支付出场)的运行配置。 type ExitKiosk struct { // Channel 默认支付渠道:mock(联调)或 wechat。 Channel string `mapstructure:"channel" json:"channel" yaml:"channel"` // Token 非空时,出口屏接口必须携带 X-Kiosk-Token 请求头。 Token string `mapstructure:"token" json:"token" yaml:"token"` // OrderTTLMinutes 订单未支付自动过期的时间,过期后屏幕重新计费。 OrderTTLMinutes int `mapstructure:"order-ttl-minutes" json:"order-ttl-minutes" yaml:"order-ttl-minutes"` // QueryIntervalSeconds 页面轮询触发渠道查单的最小间隔(秒)。 QueryIntervalSeconds int `mapstructure:"query-interval-seconds" json:"query-interval-seconds" yaml:"query-interval-seconds"` // JobIntervalSeconds 服务端兜底查单定时任务的间隔(秒)。 JobIntervalSeconds int `mapstructure:"job-interval-seconds" json:"job-interval-seconds" yaml:"job-interval-seconds"` } // WechatPay 是微信支付 Native 下单的商户配置,凭据齐全时出口自助支付自动切换到真实渠道。 type WechatPay struct { Enabled bool `mapstructure:"enabled" json:"enabled" yaml:"enabled"` AppID string `mapstructure:"app-id" json:"app-id" yaml:"app-id"` MchID string `mapstructure:"mch-id" json:"mch-id" yaml:"mch-id"` SerialNo string `mapstructure:"serial-no" json:"serial-no" yaml:"serial-no"` PrivateKeyPath string `mapstructure:"private-key-path" json:"private-key-path" yaml:"private-key-path"` APIV3Key string `mapstructure:"api-v3-key" json:"api-v3-key" yaml:"api-v3-key"` NotifyURL string `mapstructure:"notify-url" json:"notify-url" yaml:"notify-url"` Currency string `mapstructure:"currency" json:"currency" yaml:"currency"` }