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

преди 1 седмица
преди 3 дни
преди 1 седмица
преди 3 дни
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. }
  33. // AdvertisingCheck
  34. // @Summary 广告位限制
  35. // @Tags 广告位
  36. // @Description 广告位限制
  37. // @Accept json
  38. // @Produce json
  39. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  40. // @Param req body md.AdvertisingReq true "注册参数"
  41. // @Success 200 {object} md.AdvertisingCheck "具体数据"
  42. // @Failure 400 {object} md.Response "具体错误"
  43. // @Router /api/v1/advertising/check [post]
  44. func AdvertisingCheck(c *gin.Context) {
  45. svc.AdvertisingCheck(c)
  46. }