account_controller.go 787 B

123456789101112131415161718192021222324252627282930
  1. package controller
  2. //
  3. //import (
  4. // "github.com/gin-gonic/gin"
  5. // "github.com/sirupsen/logrus"
  6. // "youngee_m_api/app/service/review_service"
  7. // "youngee_m_api/app/vo"
  8. //)
  9. //
  10. //type AccountController struct{}
  11. //
  12. //// 营业执照OCR识别
  13. //func (t AccountController) OCRIdentify(c *gin.Context) {
  14. // param := &vo.IdentifyParam{}
  15. // err := c.BindJSON(param)
  16. // if err != nil {
  17. // logrus.Errorf("Request bind err:%+v\n", err)
  18. // returnError(c, 40000, "Parameter Error: "+err.Error())
  19. // return
  20. // }
  21. // reviewService := review_service.GetConfig()
  22. // resultMap, err := reviewService.CheckBusinessLicense(param)
  23. // if err != nil {
  24. // logrus.Errorf("[OCRIdentify] call Show err:%+v\n", err)
  25. // returnError(c, 40000, err.Error())
  26. // return
  27. // }
  28. // returnSuccess(c, 20000, resultMap)
  29. //}