蛋蛋星球-客户端
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 lines
1.1 KiB

  1. package hdl
  2. import (
  3. "applet/app/svc"
  4. "github.com/gin-gonic/gin"
  5. )
  6. // VideoBase
  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.VideoBaseData "具体数据"
  14. // @Failure 400 {object} md.Response "具体错误"
  15. // @Router /api/v1/video/base [get]
  16. func VideoBase(c *gin.Context) {
  17. svc.VideoBase(c)
  18. }
  19. // VideoReward
  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.VideoRewardRequest true "参数"
  27. // @Success 200 {string} "具体数据"
  28. // @Failure 400 {object} md.Response "具体错误"
  29. // @Router /api/v1/video/reward [post]
  30. func VideoReward(c *gin.Context) {
  31. svc.VideoReward(c)
  32. }