mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-05 06:05:48 +08:00
refactor: 后端包结构重构、去除无用的文件
This commit is contained in:
11
server/internal/sys/api/captcha.go
Normal file
11
server/internal/sys/api/captcha.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"mayfly-go/pkg/captcha"
|
||||
"mayfly-go/pkg/ctx"
|
||||
)
|
||||
|
||||
func GenerateCaptcha(rc *ctx.ReqCtx) {
|
||||
id, image := captcha.Generate()
|
||||
rc.ResData = map[string]interface{}{"base64Captcha": image, "cid": id}
|
||||
}
|
||||
Reference in New Issue
Block a user