xcaptcha.go 336 B

12345678910111213141516
  1. package http
  2. import (
  3. v12 "go-common/app/service/live/xcaptcha/api/grpc/v1"
  4. "go-common/library/net/http/blademaster"
  5. )
  6. // captchaVerify
  7. func captchaVerify(ctx *blademaster.Context) {
  8. req := new(v12.XVerifyReq)
  9. if err := ctx.Bind(req); err != nil {
  10. return
  11. }
  12. resp, err := xCaptchaService.Verify(ctx, req)
  13. ctx.JSON(resp, err)
  14. }