智慧食堂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 rivejä
792 B

  1. package hdl
  2. import (
  3. "applet/app/admin/lib/validate"
  4. svc2 "applet/app/admin/svc/enterprise_manage"
  5. "applet/app/customer/md"
  6. "applet/app/customer/svc"
  7. "applet/app/e"
  8. "github.com/gin-gonic/gin"
  9. )
  10. func CurlAlipayPlanetEcocampusApiRosterSignUpInfo(c *gin.Context) {
  11. var req md.CurlAlipayPlanetEcocampusApiRosterSignUpInfoReq
  12. err := c.ShouldBindJSON(&req)
  13. if err != nil {
  14. err = validate.HandleValidateErr(err)
  15. err1 := err.(e.E)
  16. e.OutErr(c, err1.Code, err1.Error())
  17. return
  18. }
  19. err, resp := svc.CurlAlipayPlanetEcocampusApiRosterSignUpInfo(req)
  20. if err != nil {
  21. e.OutErr(c, e.ERR, err.Error())
  22. return
  23. }
  24. e.OutSuc(c, resp, nil)
  25. return
  26. }
  27. func Demo(c *gin.Context) {
  28. ordNo := c.DefaultQuery("ord_no", "")
  29. svc2.JudgePackageOrdOrdState(ordNo)
  30. e.OutSuc(c, nil, nil)
  31. return
  32. }