chore: 并入 iotlcm-admin-svr 历史到 admin-svr/(原提交 49818c6)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1 "git.5iot.com/iotlcm-public/iotlcm-admin-svr/api/system/v1"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/service"
|
||||
)
|
||||
|
||||
func (c *ControllerV1) GetCaptcha(ctx context.Context, req *v1.GetCaptchaReq) (res *v1.GetCaptchaRes, err error) {
|
||||
key, image, err := service.SysCaptcha().GenerateCaptcha(ctx)
|
||||
res = &v1.GetCaptchaRes{
|
||||
CaptchaID: key,
|
||||
CaptchaImage: image,
|
||||
}
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user