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

hdl_playlet.go 1.7 KiB

1 week ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package hdl
  2. import (
  3. "applet/app/svc"
  4. "github.com/gin-gonic/gin"
  5. )
  6. // PlayletBase
  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.PlayletBaseData "具体数据"
  14. // @Failure 400 {object} md.Response "具体错误"
  15. // @Router /api/v1/playlet/base [get]
  16. func PlayletBase(c *gin.Context) {
  17. svc.PlayletBase(c)
  18. }
  19. // PlayletUnlockNum
  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.PlayletUnlockRequest true "参数"
  27. // @Success 200 {object} md.PlayletUnlockResp "具体数据"
  28. // @Failure 400 {object} md.Response "具体错误"
  29. // @Router /api/v1/playlet/unlockNum [post]
  30. func PlayletUnlockNum(c *gin.Context) {
  31. svc.PlayletUnlockNum(c)
  32. }
  33. // PlayletReward
  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.PlayletRewardRequest true "参数"
  41. // @Success 200 {string} "具体数据"
  42. // @Failure 400 {object} md.Response "具体错误"
  43. // @Router /api/v1/playlet/reward [post]
  44. func PlayletReward(c *gin.Context) {
  45. svc.PlayletReward(c)
  46. }