mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
22 lines
669 B
Go
22 lines
669 B
Go
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"` // 备注
|
||
}
|