|
@@ -24,7 +24,7 @@ type BaseApi struct{}
|
|
|
// @accept application/json
|
|
|
// @Produce application/json
|
|
|
// @Success 200 {object} response.Response{data=systemResp.SysCaptchaResponse,msg=string} "生成验证码,返回包括随机数id,base64,验证码长度,是否开启验证码"
|
|
|
-// @Router /base/captcha [post]
|
|
|
+// @Router /base/captcha [get]
|
|
|
func (b *BaseApi) Captcha(c *gin.Context) {
|
|
|
// 判断验证码是否开启
|
|
|
openCaptcha := global.Config.Captcha.OpenCaptcha
|