From 85492667034514ae9ef4c299d2e8a61f56b38b89 Mon Sep 17 00:00:00 2001 From: what Date: Mon, 29 Jan 2024 17:26:16 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E7=BB=9F=E4=B8=80=20Http=20=E4=B8=AD?= =?UTF-8?q?=E9=97=B4=E4=BB=B6=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- captcha.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/captcha.go b/captcha.go index 70c0636..c56a841 100644 --- a/captcha.go +++ b/captcha.go @@ -7,7 +7,7 @@ import ( ) type Captcha interface { - Middleware(container *do.Injector) func(next http.Handler) http.Handler + HttpMiddleware(container *do.Injector) func(next http.Handler) http.Handler Verify(id, answer string, clear bool) bool Generate(captchaUuid string) (id, answer string) }