企微通知功能对接

This commit is contained in:
mlogclub
2026-04-19 18:11:34 +08:00
parent 97c50fd326
commit c5bef3bd4f
7 changed files with 434 additions and 5 deletions
+12
View File
@@ -19,6 +19,16 @@ type Config struct {
WxWork WxWorkConfig `yaml:"wxWork"`
}
type WxWorkNotifyConfig struct {
Enabled bool `yaml:"enabled"`
ToUsers []string `yaml:"toUsers"`
ToParties []string `yaml:"toParties"`
ToTags []string `yaml:"toTags"`
Safe bool `yaml:"safe"`
EnableDuplicateCheck bool `yaml:"enableDuplicateCheck"`
DuplicateCheckInterval int `yaml:"duplicateCheckInterval"`
}
type ServerConfig struct {
Port int `yaml:"port"`
}
@@ -140,6 +150,8 @@ type WxWorkConfig struct {
// EncodingAESKey 为企业微信消息加解密密钥。
// 当前登录流程未使用,保留给消息回调等场景。
EncodingAESKey string `yaml:"encodingAESKey"`
// Notify 为企业微信应用消息通知配置。
Notify WxWorkNotifyConfig `yaml:"notify"`
}
func Load(path string) (*Config, error) {