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

hdl_demo.go 365 B

4 months ago
1234567891011121314151617181920212223
  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. }