[feat] 调整验证码

This commit is contained in:
what 2024-01-30 09:33:11 +08:00
parent fc966787b4
commit f84734be84

View File

@ -8,6 +8,6 @@ import (
type Captcha interface {
HttpMiddleware(container *do.Injector) func(next http.Handler) http.Handler
Verify(id, answer string, clear bool) error
Generate(captchaUuid string) (id, answer string)
Verify(answer, salt string, clear bool) error
Generate(captchaUuid string, u User) (answer, salt string)
}