广告平台(站长使用)
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.
 
 
 
 
 

24 regels
365 B

  1. package hdl
  2. import (
  3. "applet/app/e"
  4. "applet/app/svc"
  5. "github.com/gin-gonic/gin"
  6. )
  7. func Demo(c *gin.Context) {
  8. var args interface{}
  9. err := c.ShouldBindJSON(&args)
  10. if err != nil {
  11. err = svc.HandleValidateErr(err)
  12. err1 := err.(e.E)
  13. e.OutErr(c, err1.Code, err1.Error())
  14. return
  15. }
  16. e.OutSuc(c, map[string]interface{}{
  17. "args": args,
  18. }, nil)
  19. return
  20. }