gorm wire
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user