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

66 lines
2.3 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. }
  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. }
  47. // AdvertisingState
  48. // @Summary 广告状态 看完之后拿到广告唯一值
  49. // @Tags 广告位
  50. // @Description 广告状态 看完之后拿到广告唯一值
  51. // @Accept json
  52. // @Produce json
  53. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  54. // @Param req body md.AdvertisingReq true "注册参数"
  55. // @Success 200 {object} md.AdvertisingState "具体数据"
  56. // @Failure 400 {object} md.Response "具体错误"
  57. // @Router /api/v1/advertising/state [post]
  58. func AdvertisingState(c *gin.Context) {
  59. svc.AdvertisingState(c)
  60. }