🎨验证码接口

This commit is contained in:
coward
2024-03-06 17:31:39 +08:00
parent c820672f89
commit 2ac91bf012
7 changed files with 107 additions and 32 deletions

16
route/captcha.go Normal file
View File

@@ -0,0 +1,16 @@
package route
import (
"github.com/gin-gonic/gin"
"wireguard-dashboard/http/api"
)
// Captcha
// @description: 验证码
// @param r
func Captcha(r *gin.Engine) {
captcha := r.Group("captcha")
{
captcha.GET("captcha", api.Captcha().GenerateCaptcha) // 生成验证码
}
}