2024-01-29 17:24:51 +08:00
|
|
|
package contracts
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/samber/do"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Captcha interface {
|
2024-01-29 17:26:16 +08:00
|
|
|
HttpMiddleware(container *do.Injector) func(next http.Handler) http.Handler
|
2024-01-30 09:33:11 +08:00
|
|
|
Verify(answer, salt string, clear bool) error
|
|
|
|
Generate(captchaUuid string, u User) (answer, salt string)
|
2024-01-29 17:24:51 +08:00
|
|
|
}
|