Browse Source

add ad total num

master
shenjiachi 2 days ago
parent
commit
e4bb3a3829
5 changed files with 13 additions and 0 deletions
  1. +1
    -0
      app/hdl/hdl_home_page.go
  2. +1
    -0
      app/md/md_home_page.go
  3. +4
    -0
      docs/docs.go
  4. +4
    -0
      docs/swagger.json
  5. +3
    -0
      docs/swagger.yaml

+ 1
- 0
app/hdl/hdl_home_page.go View File

@@ -241,6 +241,7 @@ func HomePageWatchAdRule(c *gin.Context) {
}))

resp := md.HomePageWatchAdRuleResp{
RewardTotalNum: videoRewardSystem.RewardTotalNum,
ResidueWatchAdNum: residueWatchAdNum,
WatchAdRewardActivePoints: videoRewardSystem.RewardValue,
NextWatchAdDate: nextWatchAdDate,


+ 1
- 0
app/md/md_home_page.go View File

@@ -12,6 +12,7 @@ type HomePageResp struct {
}

type HomePageWatchAdRuleResp struct {
RewardTotalNum string `json:"reward_total_num"` // 总可观看广告数量
ResidueWatchAdNum int `json:"residue_watch_ad_num"` // 当前剩余可观看视频数
WatchAdRewardActivePoints string `json:"watch_ad_reward_active_points"` // 观看广告视频奖励X个活跃积分
NextWatchAdDate string `json:"next_watch_ad_date"` // 下次可观看广告时间,若为空允许观看视频


+ 4
- 0
docs/docs.go View File

@@ -3968,6 +3968,10 @@ const docTemplate = `{
"description": "当前剩余可观看视频数",
"type": "integer"
},
"reward_total_num": {
"description": "总可观看广告数量",
"type": "string"
},
"watch_ad_reward_active_points": {
"description": "观看广告视频奖励X个活跃积分",
"type": "string"


+ 4
- 0
docs/swagger.json View File

@@ -3962,6 +3962,10 @@
"description": "当前剩余可观看视频数",
"type": "integer"
},
"reward_total_num": {
"description": "总可观看广告数量",
"type": "string"
},
"watch_ad_reward_active_points": {
"description": "观看广告视频奖励X个活跃积分",
"type": "string"


+ 3
- 0
docs/swagger.yaml View File

@@ -671,6 +671,9 @@ definitions:
residue_watch_ad_num:
description: 当前剩余可观看视频数
type: integer
reward_total_num:
description: 总可观看广告数量
type: string
watch_ad_reward_active_points:
description: 观看广告视频奖励X个活跃积分
type: string


Loading…
Cancel
Save