package hdl import ( "applet/app/customer/lib/validate" "applet/app/customer/md" "applet/app/customer/svc" "applet/app/e" "github.com/gin-gonic/gin" ) func AesDecrypt(c *gin.Context) { var req md.CurlAesDecrypt err := c.ShouldBindJSON(&req) if err != nil { err = validate.HandleValidateErr(err) err1 := err.(e.E) e.OutErr(c, err1.Code, err1.Error()) return } err, result := svc.AesDecrypt(req) if err != nil { e.OutErr(c, e.ERR, err.Error()) return } e.OutSuc(c, result, nil) return } func SystemOauthToken(c *gin.Context) { var req md.SystemOauthTokenReq err := c.ShouldBindJSON(&req) if err != nil { err = validate.HandleValidateErr(err) err1 := err.(e.E) e.OutErr(c, err1.Code, err1.Error()) return } err, result := svc.SystemOauthToken(req) if err != nil { e.OutErr(c, e.ERR, err.Error()) return } e.OutSuc(c, result, nil) return }