gorm wire

This commit is contained in:
2025-05-07 14:12:53 +08:00
parent 461531c308
commit 68606c76f9
111 changed files with 1726 additions and 5809 deletions

View File

@@ -8,13 +8,11 @@ import (
type captchaService struct{}
var _ v1.CaptchaService = (*captchaService)(nil)
func NewCaptchaService() *captchaService {
func NewCaptchaService() v1.CaptchaService {
return &captchaService{}
}
var captchaStore base64Captcha.Store = base64Captcha.DefaultMemStore
var captchaStore = base64Captcha.DefaultMemStore
func (b *captchaService) Generate(height int, width int, length int, maxSkew float64, dotCount int) (id, b64s, answer string, err error) {
driver := base64Captcha.NewDriverDigit(height, width, length, maxSkew, dotCount)