Browse Source

update

master
shenjiachi 1 week ago
parent
commit
efcac17bf9
8 changed files with 938 additions and 19 deletions
  1. +166
    -0
      app/hdl/institutional_management/egg_point_coefficient/hdl_basic.go
  2. +33
    -0
      app/md/egg_point_coefficient/md_basic.go
  3. +1
    -1
      app/md/institutional_management/egg_energy/md_egg_point.go
  4. +8
    -1
      app/router/router.go
  5. +275
    -7
      docs/docs.go
  6. +272
    -5
      docs/swagger.json
  7. +182
    -4
      docs/swagger.yaml
  8. +1
    -1
      go.mod

+ 166
- 0
app/hdl/institutional_management/egg_point_coefficient/hdl_basic.go View File

@@ -0,0 +1,166 @@
package egg_point_coefficient

import (
"applet/app/db"
"applet/app/e"
md "applet/app/md/egg_point_coefficient"
"applet/app/svc"
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"code.fnuoos.com/EggPlanet/egg_models.git/src/model"
"github.com/gin-gonic/gin"
"time"
)

// EggPointCoefficientBatchAdd
// @Summary 制度中心-蛋蛋分区间系数管理-区间系数(新增)
// @Tags 蛋蛋分区间系数管理
// @Description 区间系数(新增 支持批量新增)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @param req body md.EggPointCoefficientBatchAddReq true "需要新增的内容"
// @Success 200 {int} "新增数据条数"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggPointCoefficient/add [POST]
func EggPointCoefficientBatchAdd(c *gin.Context) {
var req md.EggPointCoefficientBatchAddReq
err := c.ShouldBindJSON(&req)
if err != nil {
err = svc.HandleValidateErr(err)
err1 := err.(e.E)
e.OutErr(c, err1.Code, err1.Error())
return
}
var affected int64
if len(req.List) == 0 {
e.OutSuc(c, affected, nil)
return
}
now := time.Now()
managements := make([]model.EggPointPartitionCoefficientManagement, len(req.List))
for i, node := range req.List {
managements[i] = model.EggPointPartitionCoefficientManagement{
StartScore: node.StartScore,
EndScore: node.EndScore,
Coefficient: node.Coefficient,
CreateAt: now.Format("2006-01-02 15:04:05"),
UpdateAt: now.Format("2006-01-02 15:04:05"),
}
}
managementDb := implement.NewEggPointPartitionCoefficientManagementDb(db.Db)
affected, err = managementDb.EggPointPartitionCoefficientManagementBatchInsert(managements)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, nil)
return
}
e.OutSuc(c, affected, nil)
}

// EggPointCoefficientDel
// @Summary 制度中心-蛋蛋分区间系数管理-区间系数(删除)
// @Tags 蛋蛋分区间系数管理
// @Description 区间系数(删除)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @param req body md.EggPointCoefficientDelReq true "需要删除的数据id"
// @Success 200 {int} "成功删除数据条数"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggPointCoefficient/del [DELETE]
func EggPointCoefficientDel(c *gin.Context) {
var req md.EggPointCoefficientDelReq
err := c.ShouldBindJSON(&req)
if err != nil {
err = svc.HandleValidateErr(err)
err1 := err.(e.E)
e.OutErr(c, err1.Code, err1.Error())
return
}

managementDb := implement.NewEggPointPartitionCoefficientManagementDb(db.Db)
affected, err := managementDb.EggPointPartitionCoefficientManagementDel(req.Id)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, nil)
return
}
e.OutSuc(c, affected, nil)
}

// EggPointCoefficientGet
// @Summary 制度中心-蛋蛋分区间系数管理-区间系数(获取)
// @Tags 蛋蛋分区间系数管理
// @Description 区间系数(获取)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Success 200 {object} md.EggPointCoefficientGetResp
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggPointCoefficient/index [GET]
func EggPointCoefficientGet(c *gin.Context) {
managementDb := implement.NewEggPointPartitionCoefficientManagementDb(db.Db)
managements, err := managementDb.EggPointPartitionCoefficientManagementGetAll()
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, nil)
return
}
resp := md.EggPointCoefficientGetResp{}
if managements == nil {
e.OutSuc(c, resp, nil)
return
}

list := make([]md.EggPointCoefficientNode, len(*managements))
for i, management := range *managements {
list[i] = md.EggPointCoefficientNode{
Id: management.Id,
StartScore: management.StartScore,
EndScore: management.EndScore,
Coefficient: management.Coefficient,
}
}
resp.List = list
e.OutSuc(c, resp, nil)
}

// EggPointCoefficientUpdate
// @Summary 制度中心-蛋蛋分区间系数管理-区间系数(更新)
// @Tags 蛋蛋分区间系数管理
// @Description 区间系数(更新)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @param req body md.EggPointCoefficientUpdateReq true "需要更新的数据信息"
// @Success 200 {int} "成功修改的数据数量"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggPointCoefficient/update [POST]
func EggPointCoefficientUpdate(c *gin.Context) {
var req md.EggPointCoefficientUpdateReq
err := c.ShouldBindJSON(&req)
if err != nil {
err = svc.HandleValidateErr(err)
err1 := err.(e.E)
e.OutErr(c, err1.Code, err1.Error())
return
}
var columns []string
m := model.EggPointPartitionCoefficientManagement{}
if req.Coefficient != "" {
m.Coefficient = req.Coefficient
columns = append(columns, "coefficient")
}
if req.StartScore != "" {
m.StartScore = req.StartScore
columns = append(columns, "start_score")
}
if req.EndScore != "" {
m.EndScore = req.EndScore
columns = append(columns, "end_score")
}
managementDb := implement.NewEggPointPartitionCoefficientManagementDb(db.Db)
affected, err := managementDb.EggPointPartitionCoefficientManagementUpdate(req.Id, &m, columns...)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, nil)
return
}
e.OutSuc(c, affected, nil)
}

+ 33
- 0
app/md/egg_point_coefficient/md_basic.go View File

@@ -0,0 +1,33 @@
package md

type EggPointCoefficientNode struct {
Id int `json:"id"`
StartScore string `json:"start_score"` // 起始分值
EndScore string `json:"end_score"` // 截止分值
Coefficient string `json:"coefficient"` // 系数
}

type EggPointCoefficientGetResp struct {
List []EggPointCoefficientNode `json:"list"`
}

type EggPointCoefficientBatchAddNode struct {
StartScore string `json:"start_score"` // 起始分值
EndScore string `json:"end_score"` // 截止分值
Coefficient string `json:"coefficient"` // 系数
}

type EggPointCoefficientBatchAddReq struct {
List []EggPointCoefficientNode `json:"list"` // 系数管理列表
}

type EggPointCoefficientDelReq struct {
Id string `json:"id" binding:"required"` // 需要删除范围的id
}

type EggPointCoefficientUpdateReq struct {
Id string `json:"id" binding:"required"` // 需要修改范围的id
StartScore string `json:"start_score"` // 起始分值
EndScore string `json:"end_score"` // 截止分值
Coefficient string `json:"coefficient"` // 系数
}

+ 1
- 1
app/md/institutional_management/egg_energy/md_egg_point.go View File

@@ -36,7 +36,7 @@ type UserEggIndexResp struct {
Week string `json:"week" example:"周份"`
YearAndWeekList map[string][]string `json:"year_list"` //年份&&周份列表
StatisticsUserEggScoreValueRange []map[string]string `json:"statistics_user_egg_score_value_range"` //统计用户蛋蛋分范围
StatisticsUserEggKindProportion []map[string]interface{} `json:"statistics_user_egg_kind_proportion"` //统计用户蛋蛋分"评比类型"占比
StatisticsUserEggKindProportion []map[string]interface{} `json:"statistics_user_egg_kind_proportion"` //统计用户蛋蛋分"评比类型"占比 (count: 数量、name: 评分类型、proportion: 占比)
EggEnergyUserEggIndexWeight *model.EggEnergyUserEggIndexWeight `json:"egg_energy_user_egg_index_weight"` //蛋蛋分系数权重
}



+ 8
- 1
app/router/router.go View File

@@ -12,6 +12,7 @@ import (
"applet/app/hdl/friend_circle"
"applet/app/hdl/im"
"applet/app/hdl/institutional_management/egg_energy"
"applet/app/hdl/institutional_management/egg_point_coefficient"
"applet/app/hdl/institutional_management/module_setting"
"applet/app/hdl/institutional_management/public_platoon"
"applet/app/hdl/marketing_applications/new_user_red_package"
@@ -282,7 +283,13 @@ func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理
rPlaylet.POST("/save", content_reward.PlayletBaseSave) //
}
}

rEggPointCoefficient := r.Group("/eggPointCoefficient") // 蛋蛋分区间系数管理
{
rEggPointCoefficient.GET("/index", egg_point_coefficient.EggPointCoefficientGet) // 查询
rEggPointCoefficient.POST("/add", egg_point_coefficient.EggPointCoefficientBatchAdd) // 新增
rEggPointCoefficient.POST("/update", egg_point_coefficient.EggPointCoefficientUpdate) // 更新
rEggPointCoefficient.DELETE("/del", egg_point_coefficient.EggPointCoefficientDel) // 删除
}
}

func rMarketingApplications(r *gin.RouterGroup) { //营销应用


+ 275
- 7
docs/docs.go View File

@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"
@@ -965,7 +964,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.ArticleDelReq"
"$ref": "#/definitions/md.CloudBundleDelReq"
}
}
],
@@ -1438,9 +1437,7 @@ const docTemplate = `{
"name": "req",
"in": "body",
"required": true,
"schema": {
"type": "object"
}
"schema": {}
}
],
"responses": {
@@ -4288,6 +4285,185 @@ const docTemplate = `{
}
}
},
"/api/institutionalManagement/eggPointCoefficient/add": {
"post": {
"description": "区间系数(新增 支持批量新增)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋分区间系数管理"
],
"summary": "制度中心-蛋蛋分区间系数管理-区间系数(新增)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "需要新增的内容",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.EggPointCoefficientBatchAddReq"
}
}
],
"responses": {
"200": {
"description": "新增数据条数",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggPointCoefficient/del": {
"delete": {
"description": "区间系数(删除)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋分区间系数管理"
],
"summary": "制度中心-蛋蛋分区间系数管理-区间系数(删除)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "需要删除的数据id",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.EggPointCoefficientDelReq"
}
}
],
"responses": {
"200": {
"description": "成功删除数据条数",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggPointCoefficient/index": {
"get": {
"description": "区间系数(获取)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋分区间系数管理"
],
"summary": "制度中心-蛋蛋分区间系数管理-区间系数(获取)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/md.EggPointCoefficientGetResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggPointCoefficient/update": {
"post": {
"description": "区间系数(更新)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋分区间系数管理"
],
"summary": "制度中心-蛋蛋分区间系数管理-区间系数(更新)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "需要更新的数据信息",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.EggPointCoefficientUpdateReq"
}
}
],
"responses": {
"200": {
"description": "成功修改的数据数量",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/moduleSetting/getModuleSetting": {
"get": {
"description": "个性化设置(获取)",
@@ -8670,6 +8846,17 @@ const docTemplate = `{
}
}
},
"md.CloudBundleDelReq": {
"type": "object",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"md.CloudBundleImgResp": {
"type": "object",
"properties": {
@@ -9349,6 +9536,85 @@ const docTemplate = `{
}
}
},
"md.EggPointCoefficientBatchAddReq": {
"type": "object",
"properties": {
"list": {
"description": "系数管理列表",
"type": "array",
"items": {
"$ref": "#/definitions/md.EggPointCoefficientNode"
}
}
}
},
"md.EggPointCoefficientDelReq": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"description": "需要删除范围的id",
"type": "string"
}
}
},
"md.EggPointCoefficientGetResp": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.EggPointCoefficientNode"
}
}
}
},
"md.EggPointCoefficientNode": {
"type": "object",
"properties": {
"coefficient": {
"description": "系数",
"type": "string"
},
"end_score": {
"description": "截止分值",
"type": "string"
},
"id": {
"type": "integer"
},
"start_score": {
"description": "起始分值",
"type": "string"
}
}
},
"md.EggPointCoefficientUpdateReq": {
"type": "object",
"required": [
"id"
],
"properties": {
"coefficient": {
"description": "系数",
"type": "string"
},
"end_score": {
"description": "截止分值",
"type": "string"
},
"id": {
"description": "需要修改范围的id",
"type": "string"
},
"start_score": {
"description": "起始分值",
"type": "string"
}
}
},
"md.ExchangeRulesStruct": {
"type": "object",
"properties": {
@@ -12947,7 +13213,7 @@ const docTemplate = `{
]
},
"statistics_user_egg_kind_proportion": {
"description": "统计用户蛋蛋分\"评比类型\"占比",
"description": "统计用户蛋蛋分\"评比类型\"占比 (count: 数量、name: 评分类型、proportion: 占比)",
"type": "array",
"items": {
"type": "object",
@@ -14062,6 +14328,8 @@ var SwaggerInfo = &swag.Spec{
Description: "管理后台接口文档",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}

func init() {


+ 272
- 5
docs/swagger.json View File

@@ -957,7 +957,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.ArticleDelReq"
"$ref": "#/definitions/md.CloudBundleDelReq"
}
}
],
@@ -1430,9 +1430,7 @@
"name": "req",
"in": "body",
"required": true,
"schema": {
"type": "object"
}
"schema": {}
}
],
"responses": {
@@ -4280,6 +4278,185 @@
}
}
},
"/api/institutionalManagement/eggPointCoefficient/add": {
"post": {
"description": "区间系数(新增 支持批量新增)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋分区间系数管理"
],
"summary": "制度中心-蛋蛋分区间系数管理-区间系数(新增)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "需要新增的内容",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.EggPointCoefficientBatchAddReq"
}
}
],
"responses": {
"200": {
"description": "新增数据条数",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggPointCoefficient/del": {
"delete": {
"description": "区间系数(删除)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋分区间系数管理"
],
"summary": "制度中心-蛋蛋分区间系数管理-区间系数(删除)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "需要删除的数据id",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.EggPointCoefficientDelReq"
}
}
],
"responses": {
"200": {
"description": "成功删除数据条数",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggPointCoefficient/index": {
"get": {
"description": "区间系数(获取)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋分区间系数管理"
],
"summary": "制度中心-蛋蛋分区间系数管理-区间系数(获取)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/md.EggPointCoefficientGetResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggPointCoefficient/update": {
"post": {
"description": "区间系数(更新)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋分区间系数管理"
],
"summary": "制度中心-蛋蛋分区间系数管理-区间系数(更新)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "需要更新的数据信息",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.EggPointCoefficientUpdateReq"
}
}
],
"responses": {
"200": {
"description": "成功修改的数据数量",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/moduleSetting/getModuleSetting": {
"get": {
"description": "个性化设置(获取)",
@@ -8662,6 +8839,17 @@
}
}
},
"md.CloudBundleDelReq": {
"type": "object",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"md.CloudBundleImgResp": {
"type": "object",
"properties": {
@@ -9341,6 +9529,85 @@
}
}
},
"md.EggPointCoefficientBatchAddReq": {
"type": "object",
"properties": {
"list": {
"description": "系数管理列表",
"type": "array",
"items": {
"$ref": "#/definitions/md.EggPointCoefficientNode"
}
}
}
},
"md.EggPointCoefficientDelReq": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"description": "需要删除范围的id",
"type": "string"
}
}
},
"md.EggPointCoefficientGetResp": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.EggPointCoefficientNode"
}
}
}
},
"md.EggPointCoefficientNode": {
"type": "object",
"properties": {
"coefficient": {
"description": "系数",
"type": "string"
},
"end_score": {
"description": "截止分值",
"type": "string"
},
"id": {
"type": "integer"
},
"start_score": {
"description": "起始分值",
"type": "string"
}
}
},
"md.EggPointCoefficientUpdateReq": {
"type": "object",
"required": [
"id"
],
"properties": {
"coefficient": {
"description": "系数",
"type": "string"
},
"end_score": {
"description": "截止分值",
"type": "string"
},
"id": {
"description": "需要修改范围的id",
"type": "string"
},
"start_score": {
"description": "起始分值",
"type": "string"
}
}
},
"md.ExchangeRulesStruct": {
"type": "object",
"properties": {
@@ -12939,7 +13206,7 @@
]
},
"statistics_user_egg_kind_proportion": {
"description": "统计用户蛋蛋分\"评比类型\"占比",
"description": "统计用户蛋蛋分\"评比类型\"占比 (count: 数量、name: 评分类型、proportion: 占比)",
"type": "array",
"items": {
"type": "object",


+ 182
- 4
docs/swagger.yaml View File

@@ -956,6 +956,13 @@ definitions:
version:
type: string
type: object
md.CloudBundleDelReq:
properties:
ids:
items:
type: string
type: array
type: object
md.CloudBundleImgResp:
properties:
android_logo:
@@ -1428,6 +1435,60 @@ definitions:
description: 视频
type: string
type: object
md.EggPointCoefficientBatchAddReq:
properties:
list:
description: 系数管理列表
items:
$ref: '#/definitions/md.EggPointCoefficientNode'
type: array
type: object
md.EggPointCoefficientDelReq:
properties:
id:
description: 需要删除范围的id
type: string
required:
- id
type: object
md.EggPointCoefficientGetResp:
properties:
list:
items:
$ref: '#/definitions/md.EggPointCoefficientNode'
type: array
type: object
md.EggPointCoefficientNode:
properties:
coefficient:
description: 系数
type: string
end_score:
description: 截止分值
type: string
id:
type: integer
start_score:
description: 起始分值
type: string
type: object
md.EggPointCoefficientUpdateReq:
properties:
coefficient:
description: 系数
type: string
end_score:
description: 截止分值
type: string
id:
description: 需要修改范围的id
type: string
start_score:
description: 起始分值
type: string
required:
- id
type: object
md.ExchangeRulesStruct:
properties:
auto_exchange_nums_by_person:
@@ -3931,7 +3992,7 @@ definitions:
- $ref: '#/definitions/model.EggEnergyUserEggIndexWeight'
description: 蛋蛋分系数权重
statistics_user_egg_kind_proportion:
description: 统计用户蛋蛋分"评比类型"占比
description: '统计用户蛋蛋分"评比类型"占比 (count: 数量、name: 评分类型、proportion: 占比)'
items:
additionalProperties: true
type: object
@@ -5314,7 +5375,7 @@ paths:
name: req
required: true
schema:
$ref: '#/definitions/md.ArticleDelReq'
$ref: '#/definitions/md.CloudBundleDelReq'
produces:
- application/json
responses:
@@ -5625,8 +5686,7 @@ paths:
in: body
name: req
required: true
schema:
type: object
schema: {}
produces:
- application/json
responses:
@@ -7508,6 +7568,124 @@ paths:
summary: 制度中心-绿色能量持有者明细-蛋蛋积分流水明细(查询)
tags:
- 公排管理
/api/institutionalManagement/eggPointCoefficient/add:
post:
consumes:
- application/json
description: 区间系数(新增 支持批量新增)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 需要新增的内容
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.EggPointCoefficientBatchAddReq'
produces:
- application/json
responses:
"200":
description: 新增数据条数
schema:
type: int
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-蛋蛋分区间系数管理-区间系数(新增)
tags:
- 蛋蛋分区间系数管理
/api/institutionalManagement/eggPointCoefficient/del:
delete:
consumes:
- application/json
description: 区间系数(删除)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 需要删除的数据id
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.EggPointCoefficientDelReq'
produces:
- application/json
responses:
"200":
description: 成功删除数据条数
schema:
type: int
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-蛋蛋分区间系数管理-区间系数(删除)
tags:
- 蛋蛋分区间系数管理
/api/institutionalManagement/eggPointCoefficient/index:
get:
consumes:
- application/json
description: 区间系数(获取)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/md.EggPointCoefficientGetResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-蛋蛋分区间系数管理-区间系数(获取)
tags:
- 蛋蛋分区间系数管理
/api/institutionalManagement/eggPointCoefficient/update:
post:
consumes:
- application/json
description: 区间系数(更新)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 需要更新的数据信息
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.EggPointCoefficientUpdateReq'
produces:
- application/json
responses:
"200":
description: 成功修改的数据数量
schema:
type: int
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-蛋蛋分区间系数管理-区间系数(更新)
tags:
- 蛋蛋分区间系数管理
/api/institutionalManagement/moduleSetting/getModuleSetting:
get:
consumes:


+ 1
- 1
go.mod View File

@@ -33,7 +33,7 @@ require (
)

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241204091019-14b93d36ac8e
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241205041102-0e106357c399
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241203080408-75cfef2c6334
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5


Loading…
Cancel
Save