蛋蛋星球 后台端
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_base.go 2.4 KiB

2 weeks ago
2 weeks ago
2 weeks ago
2 weeks ago
2 weeks ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package advertising
  2. import (
  3. "applet/app/svc/advertising"
  4. "github.com/gin-gonic/gin"
  5. )
  6. // GetBasic
  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.AdvertisingBaseResp "具体数据"
  14. // @Failure 400 {object} md.Response "具体错误"
  15. // @Router /api/advertising/getBasic [get]
  16. func GetBasic(c *gin.Context) {
  17. advertising.GetBasic(c)
  18. }
  19. // SetBasic
  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.AdvertisingBase true "(分页信息必填)"
  27. // @Success 200 {string} "具体数据"
  28. // @Failure 400 {object} md.Response "具体错误"
  29. // @Router /api/advertising/setBasic [post]
  30. func SetBasic(c *gin.Context) {
  31. advertising.SetBasic(c)
  32. }
  33. // GetPlayletBasic
  34. // @Summary 广告管理-短剧设置-信息
  35. // @Tags 广告管理
  36. // @Description 广告管理-短剧设置-信息
  37. // @Accept json
  38. // @Produce json
  39. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  40. // @Success 200 {object} md.PlayletIncentiveBaseData "具体数据"
  41. // @Failure 400 {object} md.Response "具体错误"
  42. // @Router /api/advertising/getPlayletBasic [get]
  43. func GetPlayletBasic(c *gin.Context) {
  44. advertising.GetPlayletBasic(c)
  45. }
  46. // SetPlayletBasic
  47. // @Summary 广告管理-短剧设置-信息保存
  48. // @Tags 广告管理
  49. // @Description 广告管理-短剧设置-信息保存
  50. // @Accept json
  51. // @Produce json
  52. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  53. // @Param req body md.PlayletIncentiveBaseData true "(分页信息必填)"
  54. // @Success 200 {string} "具体数据"
  55. // @Failure 400 {object} md.Response "具体错误"
  56. // @Router /api/advertising/setPlayletBasic [post]
  57. func SetPlayletBasic(c *gin.Context) {
  58. advertising.SetPlayletBasic(c)
  59. }