|
- package hdl
-
- import (
- "applet/app/admin/lib/validate"
- svc2 "applet/app/admin/svc/enterprise_manage"
- "applet/app/customer/md"
- "applet/app/customer/svc"
- "applet/app/e"
- "github.com/gin-gonic/gin"
- )
-
- func CurlAlipayPlanetEcocampusApiRosterSignUpInfo(c *gin.Context) {
- var req md.CurlAlipayPlanetEcocampusApiRosterSignUpInfoReq
- err := c.ShouldBindJSON(&req)
- if err != nil {
- err = validate.HandleValidateErr(err)
- err1 := err.(e.E)
- e.OutErr(c, err1.Code, err1.Error())
- return
- }
- err, resp := svc.CurlAlipayPlanetEcocampusApiRosterSignUpInfo(req)
- if err != nil {
- e.OutErr(c, e.ERR, err.Error())
- return
- }
- e.OutSuc(c, resp, nil)
- return
- }
-
- func Demo(c *gin.Context) {
- ordNo := c.DefaultQuery("ord_no", "")
- svc2.JudgePackageOrdOrdState(ordNo)
- e.OutSuc(c, nil, nil)
- return
- }
|