shenjiachi 5 дней назад
Родитель
Сommit
9704d27704
5 измененных файлов: 12 добавлений и 64 удалений
  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 Просмотреть файл

@@ -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,
}



+ 9
- 13
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 {


+ 1
- 17
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": {


+ 1
- 17
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": {


+ 1
- 13
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: 用户数


Загрузка…
Отмена
Сохранить