Quellcode durchsuchen

add 查询绿色能量、活跃积分

master
shenjiachi vor 2 Wochen
Ursprung
Commit
e1cca5f731
6 geänderte Dateien mit 2007 neuen und 49 gelöschten Zeilen
  1. +323
    -0
      app/hdl/institutional_management/egg_Energy/hdl_basic.go
  2. +112
    -0
      app/md/institutional_management/egg_energy/md_egg_energy.go
  3. +8
    -0
      app/router/router.go
  4. +583
    -18
      docs/docs.go
  5. +583
    -18
      docs/swagger.json
  6. +398
    -13
      docs/swagger.yaml

+ 323
- 0
app/hdl/institutional_management/egg_Energy/hdl_basic.go Datei anzeigen

@@ -0,0 +1,323 @@
package egg_Energy

import (
"applet/app/db"
"applet/app/e"
md "applet/app/md/institutional_management/egg_energy"
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"github.com/gin-gonic/gin"
)

// GetActivePointsUserCoinList
// @Summary 制度中心-活跃积分持有者明细-活跃积分持有(获取)
// @Tags 公排管理
// @Description 活跃积分持有(获取)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.GetActivePointsUserCoinListReq false "落地页不填页大小默认20条数据"
// @Success 200 {object} md.GetActivePointsUserCoinListResp "成功返回"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggEnergy/activePointsUserCoinList [post]
func GetActivePointsUserCoinList(c *gin.Context) {
var req *md.GetActivePointsUserCoinListReq
if err1 := c.ShouldBindJSON(&req); err1 != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err1.Error())
return
}

// 不传每页大小 认为落地页加载
if req.PageSize == 0 {
req.PageSize = 20
req.Page = 1
}

kindList := make([]md.VirtualCoinListNode, 2)
kind1 := md.VirtualCoinListNode{
Kind: 1,
CoinID: 1,
Name: "个人活跃账户币",
}
kind2 := md.VirtualCoinListNode{
Kind: 2,
CoinID: 2,
Name: "团队活跃账户币",
}
kindList = append(kindList, kind1, kind2)

// 默认查询第一种货币持有数量列表
if req.Kind == 0 {
req.Kind = 1
}
coinID := kindList[req.Kind-1].CoinID
amountDb := implement.NewUserVirtualAmountDb(db.Db)
wallets, total, err3 := amountDb.UserVirtualAmountFindAndCountByCoinKind(coinID, req.Page, req.PageSize)
if err3 != nil {
e.OutErr(c, e.ERR_DB_ORM, err3.Error())
return
}
activePointsWalletList := make([]md.ActivePointsWalletNode, len(wallets))
userDb := implement.NewUserDb(db.Db)
for _, wallet := range wallets {
user, err4 := userDb.UserGetOneByParams(map[string]interface{}{
"key": "uid",
"value": wallet.Id,
})
if err4 != nil {
e.OutErr(c, e.ERR_DB_ORM, err4.Error())
return
}
activePointsWallet := md.ActivePointsWalletNode{
Amount: wallet.Amount,
Uid: user.Id,
UserName: user.Nickname,
UserPhone: user.Phone,
}
activePointsWalletList = append(activePointsWalletList, activePointsWallet)
}

sumAmount, err5 := amountDb.UserVirtualAmountGetSumByCoinKind(coinID)
if err5 != nil {
e.OutErr(c, e.ERR_DB_ORM, err5.Error())
return
}

resp := md.GetActivePointsUserCoinListResp{
KindList: kindList,
List: activePointsWalletList,
SumUserAmount: sumAmount,
Total: total,
}

e.OutSuc(c, resp, nil)
}

// GetActivePointsUserCoinFlowList
// @Summary 制度中心-活跃积分持有者明细-活跃积分持有流水(查询)
// @Tags 公排管理
// @Description 活跃积分持有流水(查询)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.GetActivePointsUserCoinFlowListReq true "至少传入 货币类型 ID 用户 UID 页数 每页大小"
// @Success 200 {object} md.GetActivePointsUserCoinFlowListResp "成功返回"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggEnergy/activePointsUserCoinFlowList [post]
func GetActivePointsUserCoinFlowList(c *gin.Context) {
var req *md.GetActivePointsUserCoinFlowListReq
if err1 := c.ShouldBindJSON(&req); err1 != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err1.Error())
return
}

coinFlowDb := implement.NewUserVirtualCoinFlowDb(db.Db)
coinFlows, total, err := coinFlowDb.UserVirtualCoinFlowFindByCoinAndUser(req.Page, req.PageSize, req.CoinId, req.Uid, req.StartAt, req.EndAt, req.Direction)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}

paginate := md.Paginate{
Limit: req.PageSize,
Page: req.Page,
Total: total,
}

map1 := md.DirectionMap{
Key: "1",
Value: "收入",
}
map2 := md.DirectionMap{
Key: "2",
Value: "支出",
}

direction := []md.DirectionMap{
map1, map2,
}
selectData := md.SelectData{Direction: direction}

var userVirtualCoinFlows []md.UserVirtualCoinFlow
for _, coinFlow := range coinFlows {
flow := md.UserVirtualCoinFlow{
Id: coinFlow.Id,
Uid: coinFlow.Uid,
CoinId: coinFlow.CoinId,
Direction: coinFlow.Direction,
Title: coinFlow.Title,
Amount: coinFlow.Amount,
BeforeAmount: coinFlow.BeforeAmount,
AfterAmount: coinFlow.AfterAmount,
SysFee: coinFlow.SysFee,
TransferType: coinFlow.TransferType,
CreateAt: coinFlow.CreateAt,
UpdateAt: coinFlow.UpdateAt,
}
userVirtualCoinFlows = append(userVirtualCoinFlows, flow)
}

resp := md.GetActivePointsUserCoinFlowListResp{
Paginate: paginate,
List: userVirtualCoinFlows,
SelectData: selectData,
}

e.OutSuc(c, resp, nil)
}

// GetGreenEnergyUserCoinList
// @Summary 制度中心-绿色能量持有者明细-绿色能量(获取)
// @Tags 公排管理
// @Description 绿色能量(获取)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.GetGreenEnergyUserCoinListReq false "落地页不填页大小默认20条数据"
// @Success 200 {object} md.GetGreenEnergyUserCoinListResp "成功返回"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggEnergy/greenEnergyUserCoinList [post]
func GetGreenEnergyUserCoinList(c *gin.Context) {
var req *md.GetGreenEnergyUserCoinListReq
if err1 := c.ShouldBindJSON(&req); err1 != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err1.Error())
return
}

// 不传每页大小 认为落地页加载
if req.PageSize == 0 {
req.PageSize = 20
req.Page = 1
}

kindList := make([]md.VirtualCoinListNode, 2)
kind1 := md.VirtualCoinListNode{
Kind: 1,
CoinID: 3,
Name: "个人绿色能量币",
}
kind2 := md.VirtualCoinListNode{
Kind: 2,
CoinID: 4,
Name: "团队绿色能量币",
}
kindList = append(kindList, kind1, kind2)

// 默认查询第一种货币持有数量列表
if req.Kind == 0 {
req.Kind = 1
}
coinID := kindList[req.Kind-1].CoinID
amountDb := implement.NewUserVirtualAmountDb(db.Db)
wallets, total, err3 := amountDb.UserVirtualAmountFindAndCountByCoinKind(coinID, req.Page, req.PageSize)
if err3 != nil {
e.OutErr(c, e.ERR_DB_ORM, err3.Error())
return
}
activePointsWalletList := make([]md.ActivePointsWalletNode, len(wallets))
userDb := implement.NewUserDb(db.Db)
for _, wallet := range wallets {
user, err4 := userDb.UserGetOneByParams(map[string]interface{}{
"key": "uid",
"value": wallet.Id,
})
if err4 != nil {
e.OutErr(c, e.ERR_DB_ORM, err4.Error())
return
}
activePointsWallet := md.ActivePointsWalletNode{
Amount: wallet.Amount,
Uid: user.Id,
UserName: user.Nickname,
UserPhone: user.Phone,
}
activePointsWalletList = append(activePointsWalletList, activePointsWallet)
}

sumAmount, err5 := amountDb.UserVirtualAmountGetSumByCoinKind(coinID)
if err5 != nil {
e.OutErr(c, e.ERR_DB_ORM, err5.Error())
return
}

resp := md.GetGreenEnergyUserCoinListResp{
KindList: kindList,
List: activePointsWalletList,
SumUserAmount: sumAmount,
Total: total,
}

e.OutSuc(c, resp, nil)
}

// GetGreenEnergyUserCoinFlowList
// @Summary 制度中心-绿色能量持有者明细-绿色能量持有流水(查询)
// @Tags 公排管理
// @Description 绿色能量持有流水(查询)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.GetGreenEnergyUserCoinFlowListReq true "至少传入 货币类型 ID 用户 UID 页数 每页大小"
// @Success 200 {object} md.GetGreenEnergyUserCoinFlowListResp "成功返回"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggEnergy/greenEnergyUserCoinFlowList [post]
func GetGreenEnergyUserCoinFlowList(c *gin.Context) {
var req *md.GetGreenEnergyUserCoinFlowListReq
if err1 := c.ShouldBindJSON(&req); err1 != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err1.Error())
return
}

coinFlowDb := implement.NewUserVirtualCoinFlowDb(db.Db)
coinFlows, total, err := coinFlowDb.UserVirtualCoinFlowFindByCoinAndUser(req.Page, req.PageSize, req.CoinId, req.Uid, req.StartAt, req.EndAt, req.Direction)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}

paginate := md.Paginate{
Limit: req.PageSize,
Page: req.Page,
Total: total,
}

map1 := md.DirectionMap{
Key: "1",
Value: "收入",
}
map2 := md.DirectionMap{
Key: "2",
Value: "支出",
}

direction := []md.DirectionMap{
map1, map2,
}
selectData := md.SelectData{Direction: direction}

var userVirtualCoinFlows []md.UserVirtualCoinFlow
for _, coinFlow := range coinFlows {
flow := md.UserVirtualCoinFlow{
Id: coinFlow.Id,
Uid: coinFlow.Uid,
CoinId: coinFlow.CoinId,
Direction: coinFlow.Direction,
Title: coinFlow.Title,
Amount: coinFlow.Amount,
BeforeAmount: coinFlow.BeforeAmount,
AfterAmount: coinFlow.AfterAmount,
SysFee: coinFlow.SysFee,
TransferType: coinFlow.TransferType,
CreateAt: coinFlow.CreateAt,
UpdateAt: coinFlow.UpdateAt,
}
userVirtualCoinFlows = append(userVirtualCoinFlows, flow)
}

resp := md.GetGreenEnergyUserCoinFlowListResp{
Paginate: paginate,
List: userVirtualCoinFlows,
SelectData: selectData,
}

e.OutSuc(c, resp, nil)
}

+ 112
- 0
app/md/institutional_management/egg_energy/md_egg_energy.go Datei anzeigen

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

type GetActivePointsUserCoinListReq struct {
Kind int `json:"kind"` // 虚拟币种类编号
Uid int64 `json:"uid"` // 指定查询用户 ID
UserName string `json:"user_name" example:"用户名称"`
UserPhone string `json:"user_phone" example:"手机号"`
StartCoin string `json:"start_coin" example:"最小金额"`
EndCoin string `json:"end_coin" example:"最大金额"`
Page int `json:"page"` // 页数
PageSize int `json:"page_size"` // 单页大小
}

type ActivePointsWalletNode struct {
Amount string `json:"amount" example:"账户余额"`
Uid int64 `json:"uid"` // 用户 ID
UserName string `json:"user_name" example:"用户名"`
UserPhone string `json:"user_phone" example:"手机号"`
}

type VirtualCoinListNode struct {
Kind int `json:"kind"` // 货币序号
CoinID int `json:"coin_id"` // 货币类型 ID
Name string `json:"name" example:"货币类型名称"`
}

type GetActivePointsUserCoinListResp struct {
KindList []VirtualCoinListNode `json:"kind_list"` // 货币类型集合
List []ActivePointsWalletNode `json:"list"` // 余额集合
SumUserAmount float64 `json:"sum_user_amount"` // 用户持有总数
Total int64 `json:"total"` // 持有该类型用户数
}

type GetActivePointsUserCoinFlowListReq struct {
CoinId int `json:"coin_id"` // 货币类型 ID
Direction int `json:"direction"` // 流水方向:1收入 2支出
StartAt string `json:"start_at"` // 开始时间
EndAt string `json:"end_at"` // 结束时间
Page int `json:"page"` // 页数
PageSize int `json:"page_size"` // 每页大小
Uid int64 `json:"uid"` // 用户 ID
}

type Paginate struct {
Limit int `json:"limit"` // 每页大小
Page int `json:"page"` // 页数
Total int64 `json:"total"` // 总数据量
}

type DirectionMap struct {
Key string `json:"key"`
Value string `json:"value"`
}

type SelectData struct {
Direction []DirectionMap `json:"direction"`
}

type UserVirtualCoinFlow struct {
Id int64 `json:"id"`
Uid int64 `json:"uid"` // 用户 ID
CoinId int `json:"coin_id"` // 虚拟币 ID
Direction int `json:"direction"` // 方向:1收入 2支出
Title string `json:"title" example:"标题"`
Amount string `json:"amount" example:"变更数量"`
BeforeAmount string `json:"before_amount" example:"变更前数量"`
AfterAmount string `json:"after_amount" example:"变更后数量"`
SysFee string `json:"sys_fee" example:"手续费"`
TransferType int `json:"transfer_type"` // 转账类型
CreateAt string `json:"create_at" example:"创建时间"`
UpdateAt string `json:"update_at" example:"更新时间"`
}

type GetActivePointsUserCoinFlowListResp struct {
Paginate Paginate `json:"paginate"` // 分页信息
List []UserVirtualCoinFlow `json:"list"` // 流水信息
SelectData SelectData `json:"select_data"` // 流水类型
}

type GetGreenEnergyUserCoinListReq struct {
Kind int `json:"kind"` // 虚拟币种类编号
Uid int64 `json:"uid"` // 指定查询用户 ID
UserName string `json:"user_name" example:"用户名称"`
UserPhone string `json:"user_phone" example:"手机号"`
StartCoin string `json:"start_coin" example:"最小金额"`
EndCoin string `json:"end_coin" example:"最大金额"`
Page int `json:"page"` // 页数
PageSize int `json:"page_size"` // 单页大小
}

type GetGreenEnergyUserCoinListResp struct {
KindList []VirtualCoinListNode `json:"kind_list"` // 货币类型集合
List []ActivePointsWalletNode `json:"list"` // 余额集合
SumUserAmount float64 `json:"sum_user_amount"` // 用户持有总数
Total int64 `json:"total"` // 持有该类型用户数
}

type GetGreenEnergyUserCoinFlowListReq struct {
CoinId int `json:"coin_id"` // 货币类型 ID
Direction int `json:"direction"` // 流水方向:1收入 2支出
StartAt string `json:"start_at"` // 开始时间
EndAt string `json:"end_at"` // 结束时间
Page int `json:"page"` // 页数
PageSize int `json:"page_size"` // 每页大小
Uid int64 `json:"uid"` // 用户 ID
}

type GetGreenEnergyUserCoinFlowListResp struct {
Paginate Paginate `json:"paginate"` // 分页信息
List []UserVirtualCoinFlow `json:"list"` // 流水信息
SelectData SelectData `json:"select_data"` // 流水类型
}

+ 8
- 0
app/router/router.go Datei anzeigen

@@ -4,6 +4,7 @@ import (
"applet/app/cfg"
"applet/app/hdl"
"applet/app/hdl/comm"
"applet/app/hdl/institutional_management/egg_Energy"
"applet/app/hdl/institutional_management/public_platoon"
"applet/app/mw"
_ "applet/docs"
@@ -81,6 +82,13 @@ func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理
}

}
rEggEnergy := r.Group("/eggEnergy")
{
rEggEnergy.POST("/activePointsUserCoinList", egg_Energy.GetActivePointsUserCoinList)
rEggEnergy.POST("/activePointsUserCoinFlowList", egg_Energy.GetActivePointsUserCoinFlowList)
rEggEnergy.POST("/greenEnergyUserCoinList", egg_Energy.GetGreenEnergyUserCoinList)
rEggEnergy.POST("/greenEnergyUserCoinFlowList", egg_Energy.GetGreenEnergyUserCoinFlowList)
}
}

func rComm(r *gin.RouterGroup) {


+ 583
- 18
docs/docs.go Datei anzeigen

@@ -63,6 +63,192 @@ const docTemplate = `{
}
}
},
"/api/institutionalManagement/eggEnergy/activePointsUserCoinFlowList": {
"post": {
"description": "活跃积分持有流水(查询)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"公排管理"
],
"summary": "制度中心-活跃积分持有者明细-活跃积分持有流水(查询)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "至少传入 货币类型 ID 用户 UID 页数 每页大小",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.GetActivePointsUserCoinFlowListReq"
}
}
],
"responses": {
"200": {
"description": "成功返回",
"schema": {
"$ref": "#/definitions/md.GetActivePointsUserCoinFlowListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggEnergy/activePointsUserCoinList": {
"post": {
"description": "活跃积分持有(获取)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"公排管理"
],
"summary": "制度中心-活跃积分持有者明细-活跃积分持有(获取)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "落地页不填页大小默认20条数据",
"name": "req",
"in": "body",
"schema": {
"$ref": "#/definitions/md.GetActivePointsUserCoinListReq"
}
}
],
"responses": {
"200": {
"description": "成功返回",
"schema": {
"$ref": "#/definitions/md.GetActivePointsUserCoinListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggEnergy/greenEnergyUserCoinFlowList": {
"post": {
"description": "绿色能量持有流水(查询)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"公排管理"
],
"summary": "制度中心-绿色能量持有者明细-绿色能量持有流水(查询)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "至少传入 货币类型 ID 用户 UID 页数 每页大小",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.GetGreenEnergyUserCoinFlowListReq"
}
}
],
"responses": {
"200": {
"description": "成功返回",
"schema": {
"$ref": "#/definitions/md.GetGreenEnergyUserCoinFlowListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggEnergy/greenEnergyUserCoinList": {
"post": {
"description": "绿色能量(获取)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"公排管理"
],
"summary": "制度中心-绿色能量持有者明细-绿色能量(获取)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "落地页不填页大小默认20条数据",
"name": "req",
"in": "body",
"schema": {
"$ref": "#/definitions/md.GetGreenEnergyUserCoinListReq"
}
}
],
"responses": {
"200": {
"description": "成功返回",
"schema": {
"$ref": "#/definitions/md.GetGreenEnergyUserCoinListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsAdd": {
"post": {
"description": "社区分红(新增)",
@@ -614,6 +800,61 @@ const docTemplate = `{
}
},
"definitions": {
"applet_app_md_institutional_management_egg_energy.Paginate": {
"type": "object",
"properties": {
"limit": {
"description": "每页大小",
"type": "integer"
},
"page": {
"description": "页数",
"type": "integer"
},
"total": {
"description": "总数据量",
"type": "integer"
}
}
},
"applet_app_md_institutional_management_public_platoon.Paginate": {
"type": "object",
"properties": {
"limit": {
"description": "每页大小",
"type": "integer"
},
"page": {
"description": "页数",
"type": "integer"
},
"total": {
"description": "总数据量",
"type": "integer"
}
}
},
"md.ActivePointsWalletNode": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"example": "账户余额"
},
"uid": {
"description": "用户 ID",
"type": "integer"
},
"user_name": {
"type": "string",
"example": "用户名"
},
"user_phone": {
"type": "string",
"example": "手机号"
}
}
},
"md.AddCommunityDividendsReq": {
"type": "object",
"properties": {
@@ -701,6 +942,17 @@ const docTemplate = `{
}
}
},
"md.DirectionMap": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"md.ExchangeUserPositionReq": {
"type": "object",
"properties": {
@@ -755,6 +1007,131 @@ const docTemplate = `{
}
}
},
"md.GetActivePointsUserCoinFlowListReq": {
"type": "object",
"properties": {
"coin_id": {
"description": "货币类型 ID",
"type": "integer"
},
"direction": {
"description": "流水方向:1收入 2支出",
"type": "integer"
},
"end_at": {
"description": "结束时间",
"type": "string"
},
"page": {
"description": "页数",
"type": "integer"
},
"page_size": {
"description": "每页大小",
"type": "integer"
},
"start_at": {
"description": "开始时间",
"type": "string"
},
"uid": {
"description": "用户 ID",
"type": "integer"
}
}
},
"md.GetActivePointsUserCoinFlowListResp": {
"type": "object",
"properties": {
"list": {
"description": "流水信息",
"type": "array",
"items": {
"$ref": "#/definitions/md.UserVirtualCoinFlow"
}
},
"paginate": {
"description": "分页信息",
"allOf": [
{
"$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate"
}
]
},
"select_data": {
"description": "流水类型",
"allOf": [
{
"$ref": "#/definitions/md.SelectData"
}
]
}
}
},
"md.GetActivePointsUserCoinListReq": {
"type": "object",
"properties": {
"end_coin": {
"type": "string",
"example": "最大金额"
},
"kind": {
"description": "虚拟币种类编号",
"type": "integer"
},
"page": {
"description": "页数",
"type": "integer"
},
"page_size": {
"description": "单页大小",
"type": "integer"
},
"start_coin": {
"type": "string",
"example": "最小金额"
},
"uid": {
"description": "指定查询用户 ID",
"type": "integer"
},
"user_name": {
"type": "string",
"example": "用户名称"
},
"user_phone": {
"type": "string",
"example": "手机号"
}
}
},
"md.GetActivePointsUserCoinListResp": {
"type": "object",
"properties": {
"kind_list": {
"description": "货币类型集合",
"type": "array",
"items": {
"$ref": "#/definitions/md.VirtualCoinListNode"
}
},
"list": {
"description": "余额集合",
"type": "array",
"items": {
"$ref": "#/definitions/md.ActivePointsWalletNode"
}
},
"sum_user_amount": {
"description": "用户持有总数",
"type": "number"
},
"total": {
"description": "持有该类型用户数",
"type": "integer"
}
}
},
"md.GetFreePublishUserReq": {
"type": "object",
"properties": {
@@ -786,9 +1163,134 @@ const docTemplate = `{
"description": "分页信息",
"allOf": [
{
"$ref": "#/definitions/md.Paginate"
"$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.Paginate"
}
]
}
}
},
"md.GetGreenEnergyUserCoinFlowListReq": {
"type": "object",
"properties": {
"coin_id": {
"description": "货币类型 ID",
"type": "integer"
},
"direction": {
"description": "流水方向:1收入 2支出",
"type": "integer"
},
"end_at": {
"description": "结束时间",
"type": "string"
},
"page": {
"description": "页数",
"type": "integer"
},
"page_size": {
"description": "每页大小",
"type": "integer"
},
"start_at": {
"description": "开始时间",
"type": "string"
},
"uid": {
"description": "用户 ID",
"type": "integer"
}
}
},
"md.GetGreenEnergyUserCoinFlowListResp": {
"type": "object",
"properties": {
"list": {
"description": "流水信息",
"type": "array",
"items": {
"$ref": "#/definitions/md.UserVirtualCoinFlow"
}
},
"paginate": {
"description": "分页信息",
"allOf": [
{
"$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate"
}
]
},
"select_data": {
"description": "流水类型",
"allOf": [
{
"$ref": "#/definitions/md.SelectData"
}
]
}
}
},
"md.GetGreenEnergyUserCoinListReq": {
"type": "object",
"properties": {
"end_coin": {
"type": "string",
"example": "最大金额"
},
"kind": {
"description": "虚拟币种类编号",
"type": "integer"
},
"page": {
"description": "页数",
"type": "integer"
},
"page_size": {
"description": "单页大小",
"type": "integer"
},
"start_coin": {
"type": "string",
"example": "最小金额"
},
"uid": {
"description": "指定查询用户 ID",
"type": "integer"
},
"user_name": {
"type": "string",
"example": "用户名称"
},
"user_phone": {
"type": "string",
"example": "手机号"
}
}
},
"md.GetGreenEnergyUserCoinListResp": {
"type": "object",
"properties": {
"kind_list": {
"description": "货币类型集合",
"type": "array",
"items": {
"$ref": "#/definitions/md.VirtualCoinListNode"
}
},
"list": {
"description": "余额集合",
"type": "array",
"items": {
"$ref": "#/definitions/md.ActivePointsWalletNode"
}
},
"sum_user_amount": {
"description": "用户持有总数",
"type": "number"
},
"total": {
"description": "持有该类型用户数",
"type": "integer"
}
}
},
@@ -854,23 +1356,6 @@ const docTemplate = `{
}
}
},
"md.Paginate": {
"type": "object",
"properties": {
"limit": {
"description": "每页大小",
"type": "integer"
},
"page": {
"description": "页数",
"type": "integer"
},
"total": {
"description": "总数据量",
"type": "integer"
}
}
},
"md.Response": {
"type": "object",
"properties": {
@@ -887,6 +1372,17 @@ const docTemplate = `{
}
}
},
"md.SelectData": {
"type": "object",
"properties": {
"direction": {
"type": "array",
"items": {
"$ref": "#/definitions/md.DirectionMap"
}
}
}
},
"md.SonUserDailyActivityAnalysisNode": {
"type": "object",
"properties": {
@@ -1047,6 +1543,75 @@ const docTemplate = `{
]
}
}
},
"md.UserVirtualCoinFlow": {
"type": "object",
"properties": {
"after_amount": {
"type": "string",
"example": "变更后数量"
},
"amount": {
"type": "string",
"example": "变更数量"
},
"before_amount": {
"type": "string",
"example": "变更前数量"
},
"coin_id": {
"description": "虚拟币 ID",
"type": "integer"
},
"create_at": {
"type": "string",
"example": "创建时间"
},
"direction": {
"description": "方向:1收入 2支出",
"type": "integer"
},
"id": {
"type": "integer"
},
"sys_fee": {
"type": "string",
"example": "手续费"
},
"title": {
"type": "string",
"example": "标题"
},
"transfer_type": {
"description": "转账类型",
"type": "integer"
},
"uid": {
"description": "用户 ID",
"type": "integer"
},
"update_at": {
"type": "string",
"example": "更新时间"
}
}
},
"md.VirtualCoinListNode": {
"type": "object",
"properties": {
"coin_id": {
"description": "货币类型 ID",
"type": "integer"
},
"kind": {
"description": "货币序号",
"type": "integer"
},
"name": {
"type": "string",
"example": "货币类型名称"
}
}
}
},
"securityDefinitions": {


+ 583
- 18
docs/swagger.json Datei anzeigen

@@ -56,6 +56,192 @@
}
}
},
"/api/institutionalManagement/eggEnergy/activePointsUserCoinFlowList": {
"post": {
"description": "活跃积分持有流水(查询)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"公排管理"
],
"summary": "制度中心-活跃积分持有者明细-活跃积分持有流水(查询)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "至少传入 货币类型 ID 用户 UID 页数 每页大小",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.GetActivePointsUserCoinFlowListReq"
}
}
],
"responses": {
"200": {
"description": "成功返回",
"schema": {
"$ref": "#/definitions/md.GetActivePointsUserCoinFlowListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggEnergy/activePointsUserCoinList": {
"post": {
"description": "活跃积分持有(获取)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"公排管理"
],
"summary": "制度中心-活跃积分持有者明细-活跃积分持有(获取)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "落地页不填页大小默认20条数据",
"name": "req",
"in": "body",
"schema": {
"$ref": "#/definitions/md.GetActivePointsUserCoinListReq"
}
}
],
"responses": {
"200": {
"description": "成功返回",
"schema": {
"$ref": "#/definitions/md.GetActivePointsUserCoinListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggEnergy/greenEnergyUserCoinFlowList": {
"post": {
"description": "绿色能量持有流水(查询)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"公排管理"
],
"summary": "制度中心-绿色能量持有者明细-绿色能量持有流水(查询)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "至少传入 货币类型 ID 用户 UID 页数 每页大小",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.GetGreenEnergyUserCoinFlowListReq"
}
}
],
"responses": {
"200": {
"description": "成功返回",
"schema": {
"$ref": "#/definitions/md.GetGreenEnergyUserCoinFlowListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggEnergy/greenEnergyUserCoinList": {
"post": {
"description": "绿色能量(获取)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"公排管理"
],
"summary": "制度中心-绿色能量持有者明细-绿色能量(获取)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "落地页不填页大小默认20条数据",
"name": "req",
"in": "body",
"schema": {
"$ref": "#/definitions/md.GetGreenEnergyUserCoinListReq"
}
}
],
"responses": {
"200": {
"description": "成功返回",
"schema": {
"$ref": "#/definitions/md.GetGreenEnergyUserCoinListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsAdd": {
"post": {
"description": "社区分红(新增)",
@@ -607,6 +793,61 @@
}
},
"definitions": {
"applet_app_md_institutional_management_egg_energy.Paginate": {
"type": "object",
"properties": {
"limit": {
"description": "每页大小",
"type": "integer"
},
"page": {
"description": "页数",
"type": "integer"
},
"total": {
"description": "总数据量",
"type": "integer"
}
}
},
"applet_app_md_institutional_management_public_platoon.Paginate": {
"type": "object",
"properties": {
"limit": {
"description": "每页大小",
"type": "integer"
},
"page": {
"description": "页数",
"type": "integer"
},
"total": {
"description": "总数据量",
"type": "integer"
}
}
},
"md.ActivePointsWalletNode": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"example": "账户余额"
},
"uid": {
"description": "用户 ID",
"type": "integer"
},
"user_name": {
"type": "string",
"example": "用户名"
},
"user_phone": {
"type": "string",
"example": "手机号"
}
}
},
"md.AddCommunityDividendsReq": {
"type": "object",
"properties": {
@@ -694,6 +935,17 @@
}
}
},
"md.DirectionMap": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"md.ExchangeUserPositionReq": {
"type": "object",
"properties": {
@@ -748,6 +1000,131 @@
}
}
},
"md.GetActivePointsUserCoinFlowListReq": {
"type": "object",
"properties": {
"coin_id": {
"description": "货币类型 ID",
"type": "integer"
},
"direction": {
"description": "流水方向:1收入 2支出",
"type": "integer"
},
"end_at": {
"description": "结束时间",
"type": "string"
},
"page": {
"description": "页数",
"type": "integer"
},
"page_size": {
"description": "每页大小",
"type": "integer"
},
"start_at": {
"description": "开始时间",
"type": "string"
},
"uid": {
"description": "用户 ID",
"type": "integer"
}
}
},
"md.GetActivePointsUserCoinFlowListResp": {
"type": "object",
"properties": {
"list": {
"description": "流水信息",
"type": "array",
"items": {
"$ref": "#/definitions/md.UserVirtualCoinFlow"
}
},
"paginate": {
"description": "分页信息",
"allOf": [
{
"$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate"
}
]
},
"select_data": {
"description": "流水类型",
"allOf": [
{
"$ref": "#/definitions/md.SelectData"
}
]
}
}
},
"md.GetActivePointsUserCoinListReq": {
"type": "object",
"properties": {
"end_coin": {
"type": "string",
"example": "最大金额"
},
"kind": {
"description": "虚拟币种类编号",
"type": "integer"
},
"page": {
"description": "页数",
"type": "integer"
},
"page_size": {
"description": "单页大小",
"type": "integer"
},
"start_coin": {
"type": "string",
"example": "最小金额"
},
"uid": {
"description": "指定查询用户 ID",
"type": "integer"
},
"user_name": {
"type": "string",
"example": "用户名称"
},
"user_phone": {
"type": "string",
"example": "手机号"
}
}
},
"md.GetActivePointsUserCoinListResp": {
"type": "object",
"properties": {
"kind_list": {
"description": "货币类型集合",
"type": "array",
"items": {
"$ref": "#/definitions/md.VirtualCoinListNode"
}
},
"list": {
"description": "余额集合",
"type": "array",
"items": {
"$ref": "#/definitions/md.ActivePointsWalletNode"
}
},
"sum_user_amount": {
"description": "用户持有总数",
"type": "number"
},
"total": {
"description": "持有该类型用户数",
"type": "integer"
}
}
},
"md.GetFreePublishUserReq": {
"type": "object",
"properties": {
@@ -779,9 +1156,134 @@
"description": "分页信息",
"allOf": [
{
"$ref": "#/definitions/md.Paginate"
"$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.Paginate"
}
]
}
}
},
"md.GetGreenEnergyUserCoinFlowListReq": {
"type": "object",
"properties": {
"coin_id": {
"description": "货币类型 ID",
"type": "integer"
},
"direction": {
"description": "流水方向:1收入 2支出",
"type": "integer"
},
"end_at": {
"description": "结束时间",
"type": "string"
},
"page": {
"description": "页数",
"type": "integer"
},
"page_size": {
"description": "每页大小",
"type": "integer"
},
"start_at": {
"description": "开始时间",
"type": "string"
},
"uid": {
"description": "用户 ID",
"type": "integer"
}
}
},
"md.GetGreenEnergyUserCoinFlowListResp": {
"type": "object",
"properties": {
"list": {
"description": "流水信息",
"type": "array",
"items": {
"$ref": "#/definitions/md.UserVirtualCoinFlow"
}
},
"paginate": {
"description": "分页信息",
"allOf": [
{
"$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.Paginate"
}
]
},
"select_data": {
"description": "流水类型",
"allOf": [
{
"$ref": "#/definitions/md.SelectData"
}
]
}
}
},
"md.GetGreenEnergyUserCoinListReq": {
"type": "object",
"properties": {
"end_coin": {
"type": "string",
"example": "最大金额"
},
"kind": {
"description": "虚拟币种类编号",
"type": "integer"
},
"page": {
"description": "页数",
"type": "integer"
},
"page_size": {
"description": "单页大小",
"type": "integer"
},
"start_coin": {
"type": "string",
"example": "最小金额"
},
"uid": {
"description": "指定查询用户 ID",
"type": "integer"
},
"user_name": {
"type": "string",
"example": "用户名称"
},
"user_phone": {
"type": "string",
"example": "手机号"
}
}
},
"md.GetGreenEnergyUserCoinListResp": {
"type": "object",
"properties": {
"kind_list": {
"description": "货币类型集合",
"type": "array",
"items": {
"$ref": "#/definitions/md.VirtualCoinListNode"
}
},
"list": {
"description": "余额集合",
"type": "array",
"items": {
"$ref": "#/definitions/md.ActivePointsWalletNode"
}
},
"sum_user_amount": {
"description": "用户持有总数",
"type": "number"
},
"total": {
"description": "持有该类型用户数",
"type": "integer"
}
}
},
@@ -847,23 +1349,6 @@
}
}
},
"md.Paginate": {
"type": "object",
"properties": {
"limit": {
"description": "每页大小",
"type": "integer"
},
"page": {
"description": "页数",
"type": "integer"
},
"total": {
"description": "总数据量",
"type": "integer"
}
}
},
"md.Response": {
"type": "object",
"properties": {
@@ -880,6 +1365,17 @@
}
}
},
"md.SelectData": {
"type": "object",
"properties": {
"direction": {
"type": "array",
"items": {
"$ref": "#/definitions/md.DirectionMap"
}
}
}
},
"md.SonUserDailyActivityAnalysisNode": {
"type": "object",
"properties": {
@@ -1040,6 +1536,75 @@
]
}
}
},
"md.UserVirtualCoinFlow": {
"type": "object",
"properties": {
"after_amount": {
"type": "string",
"example": "变更后数量"
},
"amount": {
"type": "string",
"example": "变更数量"
},
"before_amount": {
"type": "string",
"example": "变更前数量"
},
"coin_id": {
"description": "虚拟币 ID",
"type": "integer"
},
"create_at": {
"type": "string",
"example": "创建时间"
},
"direction": {
"description": "方向:1收入 2支出",
"type": "integer"
},
"id": {
"type": "integer"
},
"sys_fee": {
"type": "string",
"example": "手续费"
},
"title": {
"type": "string",
"example": "标题"
},
"transfer_type": {
"description": "转账类型",
"type": "integer"
},
"uid": {
"description": "用户 ID",
"type": "integer"
},
"update_at": {
"type": "string",
"example": "更新时间"
}
}
},
"md.VirtualCoinListNode": {
"type": "object",
"properties": {
"coin_id": {
"description": "货币类型 ID",
"type": "integer"
},
"kind": {
"description": "货币序号",
"type": "integer"
},
"name": {
"type": "string",
"example": "货币类型名称"
}
}
}
},
"securityDefinitions": {


+ 398
- 13
docs/swagger.yaml Datei anzeigen

@@ -1,4 +1,43 @@
definitions:
applet_app_md_institutional_management_egg_energy.Paginate:
properties:
limit:
description: 每页大小
type: integer
page:
description: 页数
type: integer
total:
description: 总数据量
type: integer
type: object
applet_app_md_institutional_management_public_platoon.Paginate:
properties:
limit:
description: 每页大小
type: integer
page:
description: 页数
type: integer
total:
description: 总数据量
type: integer
type: object
md.ActivePointsWalletNode:
properties:
amount:
example: 账户余额
type: string
uid:
description: 用户 ID
type: integer
user_name:
example: 用户名
type: string
user_phone:
example: 手机号
type: string
type: object
md.AddCommunityDividendsReq:
properties:
name:
@@ -60,6 +99,13 @@ definitions:
description: 团队人数
type: integer
type: object
md.DirectionMap:
properties:
key:
type: string
value:
type: string
type: object
md.ExchangeUserPositionReq:
properties:
position_1:
@@ -94,6 +140,92 @@ definitions:
uid:
type: integer
type: object
md.GetActivePointsUserCoinFlowListReq:
properties:
coin_id:
description: 货币类型 ID
type: integer
direction:
description: 流水方向:1收入 2支出
type: integer
end_at:
description: 结束时间
type: string
page:
description: 页数
type: integer
page_size:
description: 每页大小
type: integer
start_at:
description: 开始时间
type: string
uid:
description: 用户 ID
type: integer
type: object
md.GetActivePointsUserCoinFlowListResp:
properties:
list:
description: 流水信息
items:
$ref: '#/definitions/md.UserVirtualCoinFlow'
type: array
paginate:
allOf:
- $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.Paginate'
description: 分页信息
select_data:
allOf:
- $ref: '#/definitions/md.SelectData'
description: 流水类型
type: object
md.GetActivePointsUserCoinListReq:
properties:
end_coin:
example: 最大金额
type: string
kind:
description: 虚拟币种类编号
type: integer
page:
description: 页数
type: integer
page_size:
description: 单页大小
type: integer
start_coin:
example: 最小金额
type: string
uid:
description: 指定查询用户 ID
type: integer
user_name:
example: 用户名称
type: string
user_phone:
example: 手机号
type: string
type: object
md.GetActivePointsUserCoinListResp:
properties:
kind_list:
description: 货币类型集合
items:
$ref: '#/definitions/md.VirtualCoinListNode'
type: array
list:
description: 余额集合
items:
$ref: '#/definitions/md.ActivePointsWalletNode'
type: array
sum_user_amount:
description: 用户持有总数
type: number
total:
description: 持有该类型用户数
type: integer
type: object
md.GetFreePublishUserReq:
properties:
limit:
@@ -115,9 +247,95 @@ definitions:
type: array
paginate:
allOf:
- $ref: '#/definitions/md.Paginate'
- $ref: '#/definitions/applet_app_md_institutional_management_public_platoon.Paginate'
description: 分页信息
type: object
md.GetGreenEnergyUserCoinFlowListReq:
properties:
coin_id:
description: 货币类型 ID
type: integer
direction:
description: 流水方向:1收入 2支出
type: integer
end_at:
description: 结束时间
type: string
page:
description: 页数
type: integer
page_size:
description: 每页大小
type: integer
start_at:
description: 开始时间
type: string
uid:
description: 用户 ID
type: integer
type: object
md.GetGreenEnergyUserCoinFlowListResp:
properties:
list:
description: 流水信息
items:
$ref: '#/definitions/md.UserVirtualCoinFlow'
type: array
paginate:
allOf:
- $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.Paginate'
description: 分页信息
select_data:
allOf:
- $ref: '#/definitions/md.SelectData'
description: 流水类型
type: object
md.GetGreenEnergyUserCoinListReq:
properties:
end_coin:
example: 最大金额
type: string
kind:
description: 虚拟币种类编号
type: integer
page:
description: 页数
type: integer
page_size:
description: 单页大小
type: integer
start_coin:
example: 最小金额
type: string
uid:
description: 指定查询用户 ID
type: integer
user_name:
example: 用户名称
type: string
user_phone:
example: 手机号
type: string
type: object
md.GetGreenEnergyUserCoinListResp:
properties:
kind_list:
description: 货币类型集合
items:
$ref: '#/definitions/md.VirtualCoinListNode'
type: array
list:
description: 余额集合
items:
$ref: '#/definitions/md.ActivePointsWalletNode'
type: array
sum_user_amount:
description: 用户持有总数
type: number
total:
description: 持有该类型用户数
type: integer
type: object
md.GetPublicPlatoonBasicResp:
properties:
is_open:
@@ -162,18 +380,6 @@ definitions:
token:
type: string
type: object
md.Paginate:
properties:
limit:
description: 每页大小
type: integer
page:
description: 页数
type: integer
total:
description: 总数据量
type: integer
type: object
md.Response:
properties:
code:
@@ -185,6 +391,13 @@ definitions:
example: 具体错误原因
type: string
type: object
md.SelectData:
properties:
direction:
items:
$ref: '#/definitions/md.DirectionMap'
type: array
type: object
md.SonUserDailyActivityAnalysisNode:
properties:
activity_day_nums:
@@ -297,6 +510,56 @@ definitions:
- $ref: '#/definitions/md.DailyActivityAnalysisTopData'
description: 统计信息
type: object
md.UserVirtualCoinFlow:
properties:
after_amount:
example: 变更后数量
type: string
amount:
example: 变更数量
type: string
before_amount:
example: 变更前数量
type: string
coin_id:
description: 虚拟币 ID
type: integer
create_at:
example: 创建时间
type: string
direction:
description: 方向:1收入 2支出
type: integer
id:
type: integer
sys_fee:
example: 手续费
type: string
title:
example: 标题
type: string
transfer_type:
description: 转账类型
type: integer
uid:
description: 用户 ID
type: integer
update_at:
example: 更新时间
type: string
type: object
md.VirtualCoinListNode:
properties:
coin_id:
description: 货币类型 ID
type: integer
kind:
description: 货币序号
type: integer
name:
example: 货币类型名称
type: string
type: object
host: localhost:4001
info:
contact:
@@ -337,6 +600,128 @@ paths:
summary: Demo测试
tags:
- Demo
/api/institutionalManagement/eggEnergy/activePointsUserCoinFlowList:
post:
consumes:
- application/json
description: 活跃积分持有流水(查询)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 至少传入 货币类型 ID 用户 UID 页数 每页大小
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.GetActivePointsUserCoinFlowListReq'
produces:
- application/json
responses:
"200":
description: 成功返回
schema:
$ref: '#/definitions/md.GetActivePointsUserCoinFlowListResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-活跃积分持有者明细-活跃积分持有流水(查询)
tags:
- 公排管理
/api/institutionalManagement/eggEnergy/activePointsUserCoinList:
post:
consumes:
- application/json
description: 活跃积分持有(获取)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 落地页不填页大小默认20条数据
in: body
name: req
schema:
$ref: '#/definitions/md.GetActivePointsUserCoinListReq'
produces:
- application/json
responses:
"200":
description: 成功返回
schema:
$ref: '#/definitions/md.GetActivePointsUserCoinListResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-活跃积分持有者明细-活跃积分持有(获取)
tags:
- 公排管理
/api/institutionalManagement/eggEnergy/greenEnergyUserCoinFlowList:
post:
consumes:
- application/json
description: 绿色能量持有流水(查询)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 至少传入 货币类型 ID 用户 UID 页数 每页大小
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.GetGreenEnergyUserCoinFlowListReq'
produces:
- application/json
responses:
"200":
description: 成功返回
schema:
$ref: '#/definitions/md.GetGreenEnergyUserCoinFlowListResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-绿色能量持有者明细-绿色能量持有流水(查询)
tags:
- 公排管理
/api/institutionalManagement/eggEnergy/greenEnergyUserCoinList:
post:
consumes:
- application/json
description: 绿色能量(获取)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 落地页不填页大小默认20条数据
in: body
name: req
schema:
$ref: '#/definitions/md.GetGreenEnergyUserCoinListReq'
produces:
- application/json
responses:
"200":
description: 成功返回
schema:
$ref: '#/definitions/md.GetGreenEnergyUserCoinListResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-绿色能量持有者明细-绿色能量(获取)
tags:
- 公排管理
/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsAdd:
post:
consumes:


Laden…
Abbrechen
Speichern