@@ -646,7 +646,6 @@ func AddFundData(c *gin.Context) { | |||||
if req.Hours > 24 { | if req.Hours > 24 { | ||||
hour = 24 | hour = 24 | ||||
} | } | ||||
// 十分钟执行一次 | |||||
times := req.Hours * 60 / req.Frequency | times := req.Hours * 60 / req.Frequency | ||||
m := model.EggEnergyFundData{ | m := model.EggEnergyFundData{ | ||||
Kind: req.Kind, | Kind: req.Kind, | ||||
@@ -188,6 +188,22 @@ func UserEggFlow(c *gin.Context) { | |||||
} | } | ||||
var resp md.UserEggFlowReqResp | var resp md.UserEggFlowReqResp | ||||
var err error | var err error | ||||
//评分类型(0:未知 1:人工 2:系统) | |||||
scoreValueKindMap := []map[string]interface{}{ | |||||
{ | |||||
"name": "未知", | |||||
"value": 0, | |||||
}, | |||||
{ | |||||
"name": "人工", | |||||
"value": 1, | |||||
}, | |||||
{ | |||||
"name": "系统", | |||||
"value": 2, | |||||
}, | |||||
} | |||||
resp.ScoreValueKindMap = scoreValueKindMap | |||||
var esIndexName string | var esIndexName string | ||||
if req.Year == "" && req.Week == "" { | if req.Year == "" && req.Week == "" { | ||||
@@ -86,12 +86,13 @@ type ManualScoreReq struct { | |||||
} | } | ||||
type UserEggFlowReqResp struct { | type UserEggFlowReqResp struct { | ||||
Page int `json:"page,required"` // 页数 | |||||
PageSize int `json:"page_size,required"` // 每页大小 | |||||
Year string `json:"year" example:"年份"` | |||||
Week string `json:"week" example:"周份"` | |||||
Total int64 `json:"total"` //总数量 | |||||
List []UserEggFlowReqRespList `json:"list"` | |||||
ScoreValueKindMap []map[string]interface{} `json:"score_value_kind_map"` // 评分类型(0:未知 1:人工 2:系统) | |||||
Page int `json:"page,required"` // 页数 | |||||
PageSize int `json:"page_size,required"` // 每页大小 | |||||
Year string `json:"year" example:"年份"` | |||||
Week string `json:"week" example:"周份"` | |||||
Total int64 `json:"total"` //总数量 | |||||
List []UserEggFlowReqRespList `json:"list"` | |||||
} | } | ||||
type UserEggFlowReqRespList struct { | type UserEggFlowReqRespList struct { | ||||
@@ -6041,6 +6041,14 @@ const docTemplate = `{ | |||||
"description": "每页大小", | "description": "每页大小", | ||||
"type": "integer" | "type": "integer" | ||||
}, | }, | ||||
"score_value_kind_map": { | |||||
"description": "评分类型(0:未知 1:人工 2:系统)", | |||||
"type": "array", | |||||
"items": { | |||||
"type": "object", | |||||
"additionalProperties": true | |||||
} | |||||
}, | |||||
"total": { | "total": { | ||||
"description": "总数量", | "description": "总数量", | ||||
"type": "integer" | "type": "integer" | ||||
@@ -6034,6 +6034,14 @@ | |||||
"description": "每页大小", | "description": "每页大小", | ||||
"type": "integer" | "type": "integer" | ||||
}, | }, | ||||
"score_value_kind_map": { | |||||
"description": "评分类型(0:未知 1:人工 2:系统)", | |||||
"type": "array", | |||||
"items": { | |||||
"type": "object", | |||||
"additionalProperties": true | |||||
} | |||||
}, | |||||
"total": { | "total": { | ||||
"description": "总数量", | "description": "总数量", | ||||
"type": "integer" | "type": "integer" | ||||
@@ -2086,6 +2086,12 @@ definitions: | |||||
page_size: | page_size: | ||||
description: 每页大小 | description: 每页大小 | ||||
type: integer | type: integer | ||||
score_value_kind_map: | |||||
description: 评分类型(0:未知 1:人工 2:系统) | |||||
items: | |||||
additionalProperties: true | |||||
type: object | |||||
type: array | |||||
total: | total: | ||||
description: 总数量 | description: 总数量 | ||||
type: integer | type: integer | ||||