contracts/captcha.go

10 lines
231 B
Go
Raw Normal View History

2024-01-29 17:24:51 +08:00
package contracts
2024-05-09 13:15:24 +08:00
import "git.fsdpf.net/go/req"
2024-01-29 17:24:51 +08:00
type Captcha interface {
2024-05-09 13:15:24 +08:00
req.RouteMiddleware
2024-01-30 17:48:30 +08:00
Verify(answer string, clear bool) error
2024-05-09 13:15:24 +08:00
Generate(captchaUuid, recipient, ip string, u req.User) (body string, id int64, err error)
2024-01-29 17:24:51 +08:00
}