From d82025e854dfa7ba6046cb5f47a9d268bcdb31d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Thu, 18 Dec 2025 16:43:05 +0800 Subject: [PATCH] =?UTF-8?q?gomod=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/http.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/http/http.go b/http/http.go index b76621d..09f2641 100644 --- a/http/http.go +++ b/http/http.go @@ -92,3 +92,11 @@ func Post(ctx context.Context, url string, target any, data ...any) (err error) err = doRequest(ctx, http.MethodPost, url, target, data) return } +func Put(ctx context.Context, url string, target any, data ...any) (err error) { + err = doRequest(ctx, http.MethodPut, url, target, data) + return +} +func Delete(ctx context.Context, url string, target any, data ...any) (err error) { + err = doRequest(ctx, http.MethodPut, url, target, data) + return +}