Ver a proveniência

update

master
shenjiachi há 5 dias
ascendente
cometimento
43fd0ddc22
8 ficheiros alterados com 45 adições e 36 eliminações
  1. +6
    -6
      app/hdl/hdl_add_friend.go
  2. +1
    -1
      app/hdl/hdl_home_page.go
  3. +10
    -1
      app/hdl/hdl_points_center.go
  4. +6
    -6
      app/md/md_add_friend.go
  5. +1
    -1
      app/md/md_home_page.go
  6. +7
    -7
      docs/docs.go
  7. +7
    -7
      docs/swagger.json
  8. +7
    -7
      docs/swagger.yaml

+ 6
- 6
app/hdl/hdl_add_friend.go Ver ficheiro

@@ -736,8 +736,8 @@ func NineDimensionalSpace(c *gin.Context) {
}
list = append(list, md.SpaceListNode{
Name: utils.IntToStr(i) + "维",
MaxCount: utils.Float64ToStr(maxCount),
NowCount: utils.Int64ToStr(nowUserCount),
MaxCount: int(maxCount),
NowCount: int(nowUserCount),
})
spaceTotalNums += maxCount
}
@@ -750,11 +750,11 @@ func NineDimensionalSpace(c *gin.Context) {
resp := md.NineDimensionalSpaceResp{
Rows: utils.IntToStr(row),
Times: utils.IntToStr(times),
SpaceTotalNums: utils.Float64ToStr(spaceTotalNums),
SpaceNums: utils.Int64ToStr(hasUserCount),
SpaceTotalNums: int(spaceTotalNums),
SpaceNums: int(hasUserCount),
SpaceList: list,
ALotOfNums: utils.Float64ToStr(spaceTotalNums),
DayNum: utils.IntToStr(setting.SystemPunishReplaceValue),
ALotOfNums: int(spaceTotalNums),
DayNum: setting.SystemPunishReplaceValue,
}

e.OutSuc(c, resp, nil)


+ 1
- 1
app/hdl/hdl_home_page.go Ver ficheiro

@@ -313,7 +313,7 @@ func RealTimePrice(c *gin.Context) {
}

resp := md.RealTimePriceResp{
UserCount: utils.AnyToString(userCount),
UserCount: utils.AnyToInt64(userCount),
NowPrice: utils.AnyToString(nowPrice),
IsRises: isRisesResp,
Rises: utils.AnyToString(risesValue),


+ 10
- 1
app/hdl/hdl_points_center.go Ver ficheiro

@@ -746,7 +746,16 @@ func GetEggPointRecord(c *gin.Context) {

list, nowScore, indexNum, err := svc.GetEggPointRecordBase(now, user.Id, page, limit)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
resp := md.GetEggPointRecordResp{
NowScore: "0",
List: nil,
Paginate: md.Paginate{
Limit: limit,
Page: page,
Total: 0,
},
}
e.OutSuc(c, resp, nil)
return
}



+ 6
- 6
app/md/md_add_friend.go Ver ficheiro

@@ -72,18 +72,18 @@ type MyFansUserListResp struct {

type SpaceListNode struct {
Name string `json:"name"` // 维度
MaxCount string `json:"max_count"` // 最大容纳人数
NowCount string `json:"now_count"` // 当前人数
MaxCount int `json:"max_count"` // 最大容纳人数
NowCount int `json:"now_count"` // 当前人数
}

type NineDimensionalSpaceResp struct {
Rows string `json:"rows"` // 行数
Times string `json:"times"` // 排数
SpaceTotalNums string `json:"space_total_nums"` // 空间总数
SpaceNums string `json:"space_nums"` // 空间人数
SpaceTotalNums int `json:"space_total_nums"` // 空间总数
SpaceNums int `json:"space_nums"` // 空间人数
SpaceList []SpaceListNode `json:"space_list"` // 数据列表
ALotOfNums string `json:"a_lot_of_nums"` // 全网至多用户数
DayNum string `json:"day_num"` // 连续x天不活跃
ALotOfNums int `json:"a_lot_of_nums"` // 全网至多用户数
DayNum int `json:"day_num"` // 连续x天不活跃
}

type BasalRateResp struct {


+ 1
- 1
app/md/md_home_page.go Ver ficheiro

@@ -19,7 +19,7 @@ type HomePageWatchAdRuleResp struct {
}

type RealTimePriceResp struct {
UserCount string `json:"user_count"` // 用户数
UserCount int64 `json:"user_count"` // 用户数
NowPrice string `json:"now_price"` // 当前价格
IsRises bool `json:"is_rises"` // 是否涨/跌价
Rises string `json:"rises"` // 涨价幅度(百分比)


+ 7
- 7
docs/docs.go Ver ficheiro

@@ -3642,11 +3642,11 @@ const docTemplate = `{
"properties": {
"a_lot_of_nums": {
"description": "全网至多用户数",
"type": "string"
"type": "integer"
},
"day_num": {
"description": "连续x天不活跃",
"type": "string"
"type": "integer"
},
"rows": {
"description": "行数",
@@ -3661,11 +3661,11 @@ const docTemplate = `{
},
"space_nums": {
"description": "空间人数",
"type": "string"
"type": "integer"
},
"space_total_nums": {
"description": "空间总数",
"type": "string"
"type": "integer"
},
"times": {
"description": "排数",
@@ -3745,7 +3745,7 @@ const docTemplate = `{
},
"user_count": {
"description": "用户数",
"type": "string"
"type": "integer"
}
}
},
@@ -3995,7 +3995,7 @@ const docTemplate = `{
"properties": {
"max_count": {
"description": "最大容纳人数",
"type": "string"
"type": "integer"
},
"name": {
"description": "维度",
@@ -4003,7 +4003,7 @@ const docTemplate = `{
},
"now_count": {
"description": "当前人数",
"type": "string"
"type": "integer"
}
}
},


+ 7
- 7
docs/swagger.json Ver ficheiro

@@ -3636,11 +3636,11 @@
"properties": {
"a_lot_of_nums": {
"description": "全网至多用户数",
"type": "string"
"type": "integer"
},
"day_num": {
"description": "连续x天不活跃",
"type": "string"
"type": "integer"
},
"rows": {
"description": "行数",
@@ -3655,11 +3655,11 @@
},
"space_nums": {
"description": "空间人数",
"type": "string"
"type": "integer"
},
"space_total_nums": {
"description": "空间总数",
"type": "string"
"type": "integer"
},
"times": {
"description": "排数",
@@ -3739,7 +3739,7 @@
},
"user_count": {
"description": "用户数",
"type": "string"
"type": "integer"
}
}
},
@@ -3989,7 +3989,7 @@
"properties": {
"max_count": {
"description": "最大容纳人数",
"type": "string"
"type": "integer"
},
"name": {
"description": "维度",
@@ -3997,7 +3997,7 @@
},
"now_count": {
"description": "当前人数",
"type": "string"
"type": "integer"
}
}
},


+ 7
- 7
docs/swagger.yaml Ver ficheiro

@@ -769,10 +769,10 @@ definitions:
properties:
a_lot_of_nums:
description: 全网至多用户数
type: string
type: integer
day_num:
description: 连续x天不活跃
type: string
type: integer
rows:
description: 行数
type: string
@@ -783,10 +783,10 @@ definitions:
type: array
space_nums:
description: 空间人数
type: string
type: integer
space_total_nums:
description: 空间总数
type: string
type: integer
times:
description: 排数
type: string
@@ -842,7 +842,7 @@ definitions:
type: string
user_count:
description: 用户数
type: string
type: integer
type: object
md.RedPackageDetailResp:
properties:
@@ -1017,13 +1017,13 @@ definitions:
properties:
max_count:
description: 最大容纳人数
type: string
type: integer
name:
description: 维度
type: string
now_count:
description: 当前人数
type: string
type: integer
type: object
md.TotalRateResp:
properties:


Carregando…
Cancelar
Guardar