graph.go 517 B

123456789101112131415161718192021222324
  1. package http
  2. import (
  3. "go-common/app/service/openplatform/anti-fraud/api/grpc/v1"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. //graphPrepare 拉起图形验证
  7. func graphPrepare(c *bm.Context) {
  8. params := new(v1.GraphPrepareRequest)
  9. if err := c.Bind(params); err != nil {
  10. return
  11. }
  12. c.JSON(svc.GraphPrepare(c, params))
  13. }
  14. //graphCheck 图形验证
  15. func graphCheck(c *bm.Context) {
  16. params := new(v1.GraphCheckRequest)
  17. if err := c.Bind(params); err != nil {
  18. return
  19. }
  20. c.JSON(svc.GraphCheck(c, params))
  21. }