Ver código fonte

update

master
shenjiachi 3 dias atrás
pai
commit
95e6cf65fc
6 arquivos alterados com 45 adições e 7 exclusões
  1. +0
    -1
      app/hdl/institutional_management/egg_energy/hdl_basic.go
  2. +16
    -0
      app/hdl/institutional_management/egg_energy/hdl_egg_point.go
  3. +7
    -6
      app/md/institutional_management/egg_energy/md_egg_point.go
  4. +8
    -0
      docs/docs.go
  5. +8
    -0
      docs/swagger.json
  6. +6
    -0
      docs/swagger.yaml

+ 0
- 1
app/hdl/institutional_management/egg_energy/hdl_basic.go Ver arquivo

@@ -646,7 +646,6 @@ func AddFundData(c *gin.Context) {
if req.Hours > 24 {
hour = 24
}
// 十分钟执行一次
times := req.Hours * 60 / req.Frequency
m := model.EggEnergyFundData{
Kind: req.Kind,


+ 16
- 0
app/hdl/institutional_management/egg_energy/hdl_egg_point.go Ver arquivo

@@ -188,6 +188,22 @@ func UserEggFlow(c *gin.Context) {
}
var resp md.UserEggFlowReqResp
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
if req.Year == "" && req.Week == "" {


+ 7
- 6
app/md/institutional_management/egg_energy/md_egg_point.go Ver arquivo

@@ -86,12 +86,13 @@ type ManualScoreReq 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 {


+ 8
- 0
docs/docs.go Ver arquivo

@@ -6041,6 +6041,14 @@ const docTemplate = `{
"description": "每页大小",
"type": "integer"
},
"score_value_kind_map": {
"description": "评分类型(0:未知 1:人工 2:系统)",
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"total": {
"description": "总数量",
"type": "integer"


+ 8
- 0
docs/swagger.json Ver arquivo

@@ -6034,6 +6034,14 @@
"description": "每页大小",
"type": "integer"
},
"score_value_kind_map": {
"description": "评分类型(0:未知 1:人工 2:系统)",
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"total": {
"description": "总数量",
"type": "integer"


+ 6
- 0
docs/swagger.yaml Ver arquivo

@@ -2086,6 +2086,12 @@ definitions:
page_size:
description: 每页大小
type: integer
score_value_kind_map:
description: 评分类型(0:未知 1:人工 2:系统)
items:
additionalProperties: true
type: object
type: array
total:
description: 总数量
type: integer


Carregando…
Cancelar
Salvar