蛋蛋星球-客户端
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.
 
 
 
 
 

36 line
1.1 KiB

  1. package hdl
  2. import (
  3. "applet/app/svc"
  4. "github.com/gin-gonic/gin"
  5. )
  6. // Advertising
  7. // @Summary 广告位
  8. // @Tags 广告位
  9. // @Description 广告位
  10. // @Accept json
  11. // @Produce json
  12. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  13. // @Success 200 {object} md.AdvertisingResp "具体数据"
  14. // @Failure 400 {object} md.Response "具体错误"
  15. // @Router /api/v1/advertising [get]
  16. func Advertising(c *gin.Context) {
  17. svc.Advertising(c)
  18. }
  19. // AdvertisingDetail
  20. // @Summary 广告位详情
  21. // @Tags 广告位详情
  22. // @Description 广告位详情
  23. // @Accept json
  24. // @Produce json
  25. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  26. // @Param req body md.AdvertisingReq true "注册参数"
  27. // @Success 200 {object} md.AdvertisingSpace "具体数据"
  28. // @Failure 400 {object} md.Response "具体错误"
  29. // @Router /api/v1/advertising/detail [post]
  30. func AdvertisingDetail(c *gin.Context) {
  31. svc.AdvertisingDetail(c)
  32. }