Files
SamWaf/model/notify_channel.go
2025-11-25 09:07:21 +08:00

22 lines
669 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package model
import (
"SamWaf/model/baseorm"
)
/*
*
通知渠道配置
*/
type NotifyChannel struct {
baseorm.BaseOrm
Name string `json:"name"` // 渠道名称
Type string `json:"type"` // 渠道类型dingtalk, feishu, wechat, email等
WebhookURL string `json:"webhook_url"` // Webhook地址
Secret string `json:"secret"` // 密钥(用于签名验证)
AccessToken string `json:"access_token"` // 访问令牌
ConfigJSON string `json:"config_json"` // 额外配置JSON格式
Status int `json:"status"` // 状态1启用0禁用
Remarks string `json:"remarks"` // 备注
}