refactor: clean code

This commit is contained in:
Fu Diwei
2025-05-28 10:17:33 +08:00
parent df1f216b5b
commit ddb46f9dda
8 changed files with 14 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ import (
type NotifierConfig struct {
// Bark 服务地址。
// 零值时默认使用官方服务器。
// 零值时使用官方服务器。
ServerUrl string `json:"serverUrl"`
// Bark 设备密钥。
DeviceKey string `json:"deviceKey"`

View File

@@ -22,7 +22,7 @@ type NotifierConfig struct {
// Webhook 回调数据application/json 或 application/x-www-form-urlencoded 格式)。
WebhookData string `json:"webhookData,omitempty"`
// 请求谓词。
// 零值时默认 "POST"。
// 零值时默认 "POST"。
Method string `json:"method,omitempty"`
// 请求标头。
Headers map[string]string `json:"headers,omitempty"`