add swagger
This commit is contained in:
@@ -26,7 +26,7 @@ func Provide(opts ...opt.Option) error {
|
||||
o := opt.New(opts...)
|
||||
var conf Config
|
||||
if err := o.UnmarshalConfig(&conf); err != nil {
|
||||
log.Fatal(err)
|
||||
return err
|
||||
}
|
||||
|
||||
return container.Container.Provide(func() (*Captcha, error) {
|
||||
|
||||
@@ -27,7 +27,6 @@ type Config struct {
|
||||
OpenTimeOut string // 防爆破验证码超时时间,单位:s(秒)
|
||||
MaxScrew float64 // MaxSkew max absolute skew factor of a single digit.
|
||||
DotCount int // Number of background circles.
|
||||
|
||||
}
|
||||
|
||||
func (c *Config) OpenCaptchaTimeOutDuration() time.Duration {
|
||||
|
||||
Reference in New Issue
Block a user