package system import ( "context" v1 "git.5iot.com/iotlcm-public/iotlcm-app/api/system/v1" "git.5iot.com/iotlcm-public/iotlcm-app/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 }