From f0dce7ad91310c80bb59fe7155af164c7f674547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=91=E8=90=8C=E8=8A=BD?= <3205788256@qq.com> Date: Wed, 24 Jun 2026 21:58:50 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20SproutGate=20?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mengyastore-backend-go/internal/auth/sproutgate.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mengyastore-backend-go/internal/auth/sproutgate.go b/mengyastore-backend-go/internal/auth/sproutgate.go index 1958d1b..c10780f 100644 --- a/mengyastore-backend-go/internal/auth/sproutgate.go +++ b/mengyastore-backend-go/internal/auth/sproutgate.go @@ -12,6 +12,7 @@ import ( const defaultAuthAPIURL = "https://auth.api.shumengya.top" + type SproutGateClient struct { apiURL string httpClient *http.Client @@ -30,6 +31,8 @@ type SproutGateUser struct { Email string `json:"email"` } + + func NewSproutGateClient(apiURL string) *SproutGateClient { if apiURL == "" { apiURL = defaultAuthAPIURL