Browse Source

update

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

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

@@ -162,13 +162,9 @@ func HomePage(c *gin.Context) {
SignEndTime: signCountdown, SignEndTime: signCountdown,
TotalEggEnergy: utils.Float64ToStr(totalEggEnergy), TotalEggEnergy: utils.Float64ToStr(totalEggEnergy),
TotalActivePoints: utils.Float64ToStr(totalActivePoints), TotalActivePoints: utils.Float64ToStr(totalActivePoints),
EggEnergyNowPrice: nowPrice,
InitialPrice: initialPrice, InitialPrice: initialPrice,
IsRises: isRise,
Rises: utils.Float64ToStr(rises),
NowBasalRate: utils.Float64ToStr(nowBasalRate), NowBasalRate: utils.Float64ToStr(nowBasalRate),
NowTeamRate: utils.Float64ToStr(NowTeamRate), NowTeamRate: utils.Float64ToStr(NowTeamRate),
UserCount: userCount,
NickName: user.Nickname, NickName: user.Nickname,
} }




+ 9
- 13
app/md/md_home_page.go View File

@@ -1,18 +1,14 @@
package md package md


type HomePageResp struct { 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 { type HomePageWatchAdRuleResp struct {
@@ -26,7 +22,7 @@ type RealTimePriceResp struct {
UserCount string `json:"user_count"` // 用户数 UserCount string `json:"user_count"` // 用户数
NowPrice string `json:"now_price"` // 当前价格 NowPrice string `json:"now_price"` // 当前价格
IsRises bool `json:"is_rises"` // 是否涨/跌价 IsRises bool `json:"is_rises"` // 是否涨/跌价
Rises string `json:"rises"` // 涨价幅度
Rises string `json:"rises"` // 涨价幅度(百分比)
} }


type IsCanSignInResp struct { type IsCanSignInResp struct {


+ 1
- 17
docs/docs.go View File

@@ -3379,18 +3379,10 @@ const docTemplate = `{
"md.HomePageResp": { "md.HomePageResp": {
"type": "object", "type": "object",
"properties": { "properties": {
"egg_energy_now_price": {
"description": "蛋蛋能量当前价格",
"type": "string"
},
"initial_price": { "initial_price": {
"description": "蛋蛋能量初始价格", "description": "蛋蛋能量初始价格",
"type": "string" "type": "string"
}, },
"is_rises": {
"description": "是否涨价",
"type": "boolean"
},
"is_sign": { "is_sign": {
"description": "是否开始签到", "description": "是否开始签到",
"type": "boolean" "type": "boolean"
@@ -3407,10 +3399,6 @@ const docTemplate = `{
"description": "当前团队速率/小时", "description": "当前团队速率/小时",
"type": "string" "type": "string"
}, },
"rises": {
"description": "涨/跌价百分比",
"type": "string"
},
"sign_end_time": { "sign_end_time": {
"description": "签到截止时间", "description": "签到截止时间",
"type": "string" "type": "string"
@@ -3422,10 +3410,6 @@ const docTemplate = `{
"total_egg_energy": { "total_egg_energy": {
"description": "总蛋蛋能量", "description": "总蛋蛋能量",
"type": "string" "type": "string"
},
"user_count": {
"description": "当前用户数量",
"type": "integer"
} }
} }
}, },
@@ -3756,7 +3740,7 @@ const docTemplate = `{
"type": "string" "type": "string"
}, },
"rises": { "rises": {
"description": "涨价幅度",
"description": "涨价幅度(百分比)",
"type": "string" "type": "string"
}, },
"user_count": { "user_count": {


+ 1
- 17
docs/swagger.json View File

@@ -3373,18 +3373,10 @@
"md.HomePageResp": { "md.HomePageResp": {
"type": "object", "type": "object",
"properties": { "properties": {
"egg_energy_now_price": {
"description": "蛋蛋能量当前价格",
"type": "string"
},
"initial_price": { "initial_price": {
"description": "蛋蛋能量初始价格", "description": "蛋蛋能量初始价格",
"type": "string" "type": "string"
}, },
"is_rises": {
"description": "是否涨价",
"type": "boolean"
},
"is_sign": { "is_sign": {
"description": "是否开始签到", "description": "是否开始签到",
"type": "boolean" "type": "boolean"
@@ -3401,10 +3393,6 @@
"description": "当前团队速率/小时", "description": "当前团队速率/小时",
"type": "string" "type": "string"
}, },
"rises": {
"description": "涨/跌价百分比",
"type": "string"
},
"sign_end_time": { "sign_end_time": {
"description": "签到截止时间", "description": "签到截止时间",
"type": "string" "type": "string"
@@ -3416,10 +3404,6 @@
"total_egg_energy": { "total_egg_energy": {
"description": "总蛋蛋能量", "description": "总蛋蛋能量",
"type": "string" "type": "string"
},
"user_count": {
"description": "当前用户数量",
"type": "integer"
} }
} }
}, },
@@ -3750,7 +3734,7 @@
"type": "string" "type": "string"
}, },
"rises": { "rises": {
"description": "涨价幅度",
"description": "涨价幅度(百分比)",
"type": "string" "type": "string"
}, },
"user_count": { "user_count": {


+ 1
- 13
docs/swagger.yaml View File

@@ -584,15 +584,9 @@ definitions:
type: object type: object
md.HomePageResp: md.HomePageResp:
properties: properties:
egg_energy_now_price:
description: 蛋蛋能量当前价格
type: string
initial_price: initial_price:
description: 蛋蛋能量初始价格 description: 蛋蛋能量初始价格
type: string type: string
is_rises:
description: 是否涨价
type: boolean
is_sign: is_sign:
description: 是否开始签到 description: 是否开始签到
type: boolean type: boolean
@@ -605,9 +599,6 @@ definitions:
now_team_rate: now_team_rate:
description: 当前团队速率/小时 description: 当前团队速率/小时
type: string type: string
rises:
description: 涨/跌价百分比
type: string
sign_end_time: sign_end_time:
description: 签到截止时间 description: 签到截止时间
type: string type: string
@@ -617,9 +608,6 @@ definitions:
total_egg_energy: total_egg_energy:
description: 总蛋蛋能量 description: 总蛋蛋能量
type: string type: string
user_count:
description: 当前用户数量
type: integer
type: object type: object
md.HomePageWatchAdRuleResp: md.HomePageWatchAdRuleResp:
properties: properties:
@@ -850,7 +838,7 @@ definitions:
description: 当前价格 description: 当前价格
type: string type: string
rises: rises:
description: 涨价幅度
description: 涨价幅度(百分比)
type: string type: string
user_count: user_count:
description: 用户数 description: 用户数


Loading…
Cancel
Save