captcha.go 436 B

12345678910111213141516171819
  1. package router
  2. import (
  3. "cold-logistics/app/admin/controller"
  4. "github.com/gin-gonic/gin"
  5. jwt "gogs.baozhida.cn/zoie/OAuth-core/pkg/jwtauth"
  6. )
  7. func init() {
  8. routerCheckRole = append(routerCheckRole, registerCaptchaRouter)
  9. }
  10. func registerCaptchaRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
  11. r1 := v1.Group("")
  12. {
  13. cont := controller.SystemController{}
  14. r1.GET("/captcha", cont.GenerateCaptchaHandler)
  15. }
  16. }