This commit is contained in:
@@ -40,4 +40,7 @@ type Server struct {
|
||||
|
||||
// Volcengine配置
|
||||
Volcengine Volcengine `mapstructure:"volcengine" json:"volcengine" yaml:"volcengine"`
|
||||
|
||||
// 微信配置
|
||||
Wechat Wechat `mapstructure:"wechat" json:"wechat" yaml:"wechat"`
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package config
|
||||
|
||||
// Wechat 微信配置结构 (简化版)
|
||||
type Wechat struct {
|
||||
// 微信小程序配置
|
||||
MiniAppID string `mapstructure:"mini-app-id" json:"miniAppId" yaml:"mini-app-id"`
|
||||
MiniAppSecret string `mapstructure:"mini-app-secret" json:"miniAppSecret" yaml:"mini-app-secret"`
|
||||
|
||||
// 微信公众号配置
|
||||
OfficialAppID string `mapstructure:"official-app-id" json:"officialAppId" yaml:"official-app-id"`
|
||||
OfficialAppSecret string `mapstructure:"official-app-secret" json:"officialAppSecret" yaml:"official-app-secret"`
|
||||
OfficialToken string `mapstructure:"official-token" json:"officialToken" yaml:"official-token"`
|
||||
}
|
||||
Reference in New Issue
Block a user