广告平台(媒体使用)
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
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. }