19 lines
353 B
Go
19 lines
353 B
Go
package captcha
|
|
|
|
import (
|
|
v1 "management/internal/erpserver/service/v1"
|
|
"management/internal/pkg/config"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type Config struct {
|
|
Conf *config.Config
|
|
CaptchaService v1.CaptchaService
|
|
}
|
|
|
|
func Routes(r *gin.RouterGroup, cfg Config) {
|
|
app := newApp(cfg.Conf, cfg.CaptchaService)
|
|
r.GET("/captcha", app.captcha)
|
|
}
|