From 26666c332fda99eacaf004b5717d8648d038b9d2 Mon Sep 17 00:00:00 2001 From: bvbej Date: Sat, 7 Feb 2026 16:03:15 +0800 Subject: [PATCH] =?UTF-8?q?[=F0=9F=9A=80]=20yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/crypto/interface.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/crypto/interface.go b/pkg/crypto/interface.go index 9593987..f82db95 100644 --- a/pkg/crypto/interface.go +++ b/pkg/crypto/interface.go @@ -24,11 +24,11 @@ type Signer interface { } type Config struct { - SecretKey string // 对称加密密钥 - SignKey string // 签名密钥 - TimestampWindow time.Duration // 时间戳允许的时间窗口 - EnableTimestamp bool // 是否启用时间戳验证 - EnableSignature bool // 是否启用签名 + SecretKey string `yaml:"secret_key" json:"secret_key"` // 对称加密密钥 + SignKey string `yaml:"sign_key" json:"sign_key"` // 签名密钥 + TimestampWindow time.Duration `yaml:"timestamp_window" json:"timestamp_window"` // 时间戳允许的时间窗口 + EnableTimestamp bool `yaml:"enable_timestamp" json:"enable_timestamp"` // 是否启用时间戳验证 + EnableSignature bool `yaml:"enable_signature" json:"enable_signature"` // 是否启用签名 } type EncryptedRequest struct {