diff --git a/app/hdl/hdl_home_page.go b/app/hdl/hdl_home_page.go index 341132b..d816787 100644 --- a/app/hdl/hdl_home_page.go +++ b/app/hdl/hdl_home_page.go @@ -162,13 +162,9 @@ func HomePage(c *gin.Context) { SignEndTime: signCountdown, TotalEggEnergy: utils.Float64ToStr(totalEggEnergy), TotalActivePoints: utils.Float64ToStr(totalActivePoints), - EggEnergyNowPrice: nowPrice, InitialPrice: initialPrice, - IsRises: isRise, - Rises: utils.Float64ToStr(rises), NowBasalRate: utils.Float64ToStr(nowBasalRate), NowTeamRate: utils.Float64ToStr(NowTeamRate), - UserCount: userCount, NickName: user.Nickname, } diff --git a/app/md/md_home_page.go b/app/md/md_home_page.go index 17bb2c7..4bf4643 100644 --- a/app/md/md_home_page.go +++ b/app/md/md_home_page.go @@ -1,18 +1,14 @@ package md type HomePageResp struct { - IsSign bool `json:"is_sign"` // 是否开始签到 - SignEndTime string `json:"sign_end_time"` // 签到截止时间 - TotalEggEnergy string `json:"total_egg_energy"` // 总蛋蛋能量 - TotalActivePoints string `json:"total_active_points"` // 总蛋蛋积分 - EggEnergyNowPrice string `json:"egg_energy_now_price"` // 蛋蛋能量当前价格 - InitialPrice string `json:"initial_price"` // 蛋蛋能量初始价格 - IsRises bool `json:"is_rises"` // 是否涨价 - Rises string `json:"rises"` // 涨/跌价百分比 - NowBasalRate string `json:"now_basal_rate"` // 当前基础速率/小时 - NowTeamRate string `json:"now_team_rate"` // 当前团队速率/小时 - UserCount int64 `json:"user_count"` // 当前用户数量 - NickName string `json:"nick_name"` // 用户名称 + IsSign bool `json:"is_sign"` // 是否开始签到 + SignEndTime string `json:"sign_end_time"` // 签到截止时间 + TotalEggEnergy string `json:"total_egg_energy"` // 总蛋蛋能量 + TotalActivePoints string `json:"total_active_points"` // 总蛋蛋积分 + InitialPrice string `json:"initial_price"` // 蛋蛋能量初始价格 + NowBasalRate string `json:"now_basal_rate"` // 当前基础速率/小时 + NowTeamRate string `json:"now_team_rate"` // 当前团队速率/小时 + NickName string `json:"nick_name"` // 用户名称 } type HomePageWatchAdRuleResp struct { @@ -26,7 +22,7 @@ type RealTimePriceResp struct { UserCount string `json:"user_count"` // 用户数 NowPrice string `json:"now_price"` // 当前价格 IsRises bool `json:"is_rises"` // 是否涨/跌价 - Rises string `json:"rises"` // 涨价幅度 + Rises string `json:"rises"` // 涨价幅度(百分比) } type IsCanSignInResp struct { diff --git a/docs/docs.go b/docs/docs.go index 75576db..c3b06f3 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -3379,18 +3379,10 @@ const docTemplate = `{ "md.HomePageResp": { "type": "object", "properties": { - "egg_energy_now_price": { - "description": "蛋蛋能量当前价格", - "type": "string" - }, "initial_price": { "description": "蛋蛋能量初始价格", "type": "string" }, - "is_rises": { - "description": "是否涨价", - "type": "boolean" - }, "is_sign": { "description": "是否开始签到", "type": "boolean" @@ -3407,10 +3399,6 @@ const docTemplate = `{ "description": "当前团队速率/小时", "type": "string" }, - "rises": { - "description": "涨/跌价百分比", - "type": "string" - }, "sign_end_time": { "description": "签到截止时间", "type": "string" @@ -3422,10 +3410,6 @@ const docTemplate = `{ "total_egg_energy": { "description": "总蛋蛋能量", "type": "string" - }, - "user_count": { - "description": "当前用户数量", - "type": "integer" } } }, @@ -3756,7 +3740,7 @@ const docTemplate = `{ "type": "string" }, "rises": { - "description": "涨价幅度", + "description": "涨价幅度(百分比)", "type": "string" }, "user_count": { diff --git a/docs/swagger.json b/docs/swagger.json index 7382a1d..42b5c5c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -3373,18 +3373,10 @@ "md.HomePageResp": { "type": "object", "properties": { - "egg_energy_now_price": { - "description": "蛋蛋能量当前价格", - "type": "string" - }, "initial_price": { "description": "蛋蛋能量初始价格", "type": "string" }, - "is_rises": { - "description": "是否涨价", - "type": "boolean" - }, "is_sign": { "description": "是否开始签到", "type": "boolean" @@ -3401,10 +3393,6 @@ "description": "当前团队速率/小时", "type": "string" }, - "rises": { - "description": "涨/跌价百分比", - "type": "string" - }, "sign_end_time": { "description": "签到截止时间", "type": "string" @@ -3416,10 +3404,6 @@ "total_egg_energy": { "description": "总蛋蛋能量", "type": "string" - }, - "user_count": { - "description": "当前用户数量", - "type": "integer" } } }, @@ -3750,7 +3734,7 @@ "type": "string" }, "rises": { - "description": "涨价幅度", + "description": "涨价幅度(百分比)", "type": "string" }, "user_count": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 280e8fc..2ddc578 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -584,15 +584,9 @@ definitions: type: object md.HomePageResp: properties: - egg_energy_now_price: - description: 蛋蛋能量当前价格 - type: string initial_price: description: 蛋蛋能量初始价格 type: string - is_rises: - description: 是否涨价 - type: boolean is_sign: description: 是否开始签到 type: boolean @@ -605,9 +599,6 @@ definitions: now_team_rate: description: 当前团队速率/小时 type: string - rises: - description: 涨/跌价百分比 - type: string sign_end_time: description: 签到截止时间 type: string @@ -617,9 +608,6 @@ definitions: total_egg_energy: description: 总蛋蛋能量 type: string - user_count: - description: 当前用户数量 - type: integer type: object md.HomePageWatchAdRuleResp: properties: @@ -850,7 +838,7 @@ definitions: description: 当前价格 type: string rises: - description: 涨价幅度 + description: 涨价幅度(百分比) type: string user_count: description: 用户数