Browse Source

add 基础设置

master
shenjiachi 2 weeks ago
parent
commit
3c4b965ed2
8 changed files with 1506 additions and 139 deletions
  1. +189
    -1
      app/hdl/institutional_management/egg_energy/hdl_basic.go
  2. +12
    -16
      app/hdl/institutional_management/public_platoon/hdl_basic.go
  3. +65
    -0
      app/md/institutional_management/egg_energy/md_basic.go
  4. +1
    -1
      app/md/institutional_management/public_platoon/md_public_platoon.go
  5. +1
    -0
      app/router/router.go
  6. +465
    -42
      docs/docs.go
  7. +465
    -42
      docs/swagger.json
  8. +308
    -37
      docs/swagger.yaml

+ 189
- 1
app/hdl/institutional_management/egg_energy/hdl_basic.go View File

@@ -1,11 +1,199 @@
package egg_energy

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

// GetVirtualCoinList
// @Summary 制度中心-蛋蛋能量-查询所有币种(获取)
// @Tags 蛋蛋能量
// @Description 查询所有币种(获取)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Success 200 {object} []md.VirtualCoin "成功返回"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggEnergy/availableEnergy/list [post]
func GetVirtualCoinList(c *gin.Context) {
virtualCoinDb := implement.NewVirtualCoinDb(db.Db)
coins, err := virtualCoinDb.VirtualCoinFindAll()
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}

list := make([]md.VirtualCoin, len(coins))
for i, coin := range coins {
list[i] = md.VirtualCoin{
Id: coin.Id,
Name: coin.Name,
ExchangeRatio: coin.ExchangeRatio,
IsUse: coin.IsUse,
CreateAt: coin.CreateAt,
UpdateAt: coin.UpdateAt,
}
}

e.OutSuc(c, list, nil)

}

// GetEggEnergyBasic
// @Summary 制度中心-蛋蛋能量-基础设置(获取)
// @Tags 蛋蛋能量
// @Description 基础设置(获取)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Success 200 {object} md.GetEggEnergyBasicResp "具体数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggEnergy/getBasic [get]
func GetEggEnergyBasic(c *gin.Context) {
basicSettingDb := implement.NewEggEnergyBasicSettingDb(db.Db)
basicSettings, err1 := basicSettingDb.EggEnergyBasicSettingGetOne()
if err1 != nil {
e.OutErr(c, e.ERR_DB_ORM, err1.Error())
return
}
if basicSettings == nil {
e.OutErr(c, e.ERR_NO_DATA, errors.New("未能获取基础设置"))
return
}

var videoRewardSystem md2.VideoRewardSystemStruct
utils.Unserialize([]byte(basicSettings.VideoRewardSystem), videoRewardSystem)

var destructionSetting md2.DestructionSettingStruct
utils.Unserialize([]byte(basicSettings.DestructionSetting), destructionSetting)

var priceSetting md2.PriceSettingStruct
utils.Unserialize([]byte(basicSettings.PriceSetting), priceSetting)

var exchangeRules md2.ExchangeRulesStruct
utils.Unserialize([]byte(basicSettings.ExchangeRules), exchangeRules)

var rewardSystem md2.RewardSystemStruct
utils.Unserialize([]byte(basicSettings.RewardSystem), rewardSystem)

resp := md.GetEggEnergyBasicResp{
BasicSetting: md.BasicSetting{
IsOpen: basicSettings.IsOpen,
PersonEggEnergyCoinId: basicSettings.PersonEggEnergyCoinId,
TeamEggEnergyCoinId: basicSettings.TeamEggEnergyCoinId,
PersonEggPointsCoinId: basicSettings.PersonEggPointsCoinId,
TeamEggPointsCoinId: basicSettings.TeamEggPointsCoinId,
DirectPushReward: basicSettings.DirectPushReward,
},
VideoRewardSetting: md.VideoRewardSetting{
VideoRewardIsOpen: basicSettings.VideoRewardIsOpen,
VideoRewardSystem: md2.VideoRewardSystemStruct{
RewardValue: videoRewardSystem.RewardValue,
RewardTotalNum: videoRewardSystem.RewardTotalNum,
IntervalMinutes: videoRewardSystem.IntervalMinutes,
EachRoundHour: videoRewardSystem.EachRoundHour,
},
},
DataSetting: md.DataSetting{
TotalIssuanceAmount: basicSettings.TotalIssuanceAmount,
TotalTechnologyTeam: basicSettings.TotalTechnologyTeam,
TotalAngelInvestor: basicSettings.TotalAngelInvestor,
TotalOperateFund: basicSettings.TotalOperateFund,
TotalEcologicalDevelopment: basicSettings.TotalEcologicalDevelopment,
TotalUserForPerson: basicSettings.TotalUserForPerson,
TotalUserForTeam: basicSettings.TotalUserForTeam,
},
DestructionSetting: md2.DestructionSettingStruct{
DestructionQuantity: destructionSetting.DestructionQuantity,
PublicWelfareAndCharity: destructionSetting.PublicWelfareAndCharity,
DevelopmentCommittee: destructionSetting.DevelopmentCommittee,
StarLevelDividends: destructionSetting.StarLevelDividends,
MarketplaceMerchant: destructionSetting.MarketplaceMerchant,
CommunityDividends: destructionSetting.CommunityDividends,
},
PriceSetting: md2.PriceSettingStruct{
PriceHigherThanValue: priceSetting.PriceHigherThanValue,
MarketplaceMerchantsNumsExchangeMarketplaceMerchantsFundValue: priceSetting.MarketplaceMerchantsNumsExchangeMarketplaceMerchantsFundValue,
PriceBelowValue: priceSetting.PriceBelowValue,
MarketplaceMerchantsFundExchangeMarketplaceMerchantsNumsValue: priceSetting.MarketplaceMerchantsFundExchangeMarketplaceMerchantsNumsValue,
},
ExchangeRules: md2.ExchangeRulesStruct{
AutoExchangeNumsByPerson: exchangeRules.AutoExchangeNumsByPerson,
AutoExchangeRateByPerson: exchangeRules.AutoExchangeRateByPerson,
AutoExchangeNumsByTeam: exchangeRules.AutoExchangeNumsByTeam,
AutoExchangeRateByTeam: exchangeRules.AutoExchangeRateByTeam,
},
RewardSystem: md2.RewardSystemStruct{
Level: rewardSystem.Level,
RewardCondition: rewardSystem.RewardCondition,
RewardValue: rewardSystem.RewardValue,
},
SystemID: basicSettings.Id,
}

e.OutSuc(c, resp, nil)
}

// UpdateEggEnergyBasic
// @Summary 制度中心-蛋蛋能量-基础设置(获取)
// @Tags 蛋蛋能量
// @Description 基础设置(获取)
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.UpdateEggEnergyBasicReq true "system_id 必填"
// @Success 200 {int} "修改数据条数"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/eggEnergy/updateBasic [post]
func UpdateEggEnergyBasic(c *gin.Context) {
var req *md.UpdateEggEnergyBasicReq
if err1 := c.ShouldBindJSON(&req); err1 != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err1.Error())
return
}

destructionSettingStr := utils.SerializeStr(req.DestructionSetting)
priceSettingStr := utils.SerializeStr(req.PriceSetting)
videoRewardSystemStr := utils.SerializeStr(req.VideoRewardSetting.VideoRewardSystem)
exchangeRulesStr := utils.SerializeStr(req.ExchangeRules)
rewardSystemStr := utils.SerializeStr(req.RewardSystem)

m := model.EggEnergyBasicSetting{
Id: req.SystemID,
IsOpen: req.BasicSetting.IsOpen,
PersonEggEnergyCoinId: req.BasicSetting.PersonEggEnergyCoinId,
TeamEggEnergyCoinId: req.BasicSetting.TeamEggEnergyCoinId,
PersonEggPointsCoinId: req.BasicSetting.PersonEggPointsCoinId,
TeamEggPointsCoinId: req.BasicSetting.TeamEggPointsCoinId,
TotalIssuanceAmount: req.DataSetting.TotalIssuanceAmount,
TotalTechnologyTeam: req.DataSetting.TotalTechnologyTeam,
TotalAngelInvestor: req.DataSetting.TotalAngelInvestor,
TotalOperateFund: req.DataSetting.TotalOperateFund,
TotalEcologicalDevelopment: req.DataSetting.TotalEcologicalDevelopment,
TotalUserForPerson: req.DataSetting.TotalUserForPerson,
TotalUserForTeam: req.DataSetting.TotalUserForTeam,
DestructionSetting: destructionSettingStr,
DirectPushReward: req.BasicSetting.DirectPushReward,
PriceSetting: priceSettingStr,
VideoRewardIsOpen: req.VideoRewardSetting.VideoRewardIsOpen,
VideoRewardSystem: videoRewardSystemStr,
ExchangeRules: exchangeRulesStr,
RewardSystem: rewardSystemStr,
}

energyBasicSettingDb := implement.NewEggEnergyBasicSettingDb(db.Db)
session := db.Db.NewSession()
affected, err := energyBasicSettingDb.EggEnergyBasicSettingUpdate(session, req.SystemID, &m)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}
e.OutSuc(c, affected, nil)
}

+ 12
- 16
app/hdl/institutional_management/public_platoon/hdl_basic.go View File

@@ -8,6 +8,7 @@ import (
"applet/app/utils"
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"code.fnuoos.com/EggPlanet/egg_models.git/src/model"
ruleSvc "code.fnuoos.com/EggPlanet/egg_system_rules.git/rule/egg_energy"
"errors"
"github.com/gin-gonic/gin"
"time"
@@ -525,7 +526,7 @@ func ListCommunityDividends(c *gin.Context) {
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.AddCommunityDividendsReq true "分红名称、分红总量"
// @Success 200 {int} "插入数据 ID"
// @Success 200 {success} "成功"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsAdd [post]
func AddCommunityDividends(c *gin.Context) {
@@ -535,24 +536,19 @@ func AddCommunityDividends(c *gin.Context) {
return
}

now := time.Now()
var m model.EggEnergyCommunityDividends
m = model.EggEnergyCommunityDividends{
Nums: req.Nums,
Name: req.Name,
CoinId: 0,
PersonsNum: 0,
IsOver: 0,
CreateAt: now.Format("2006-01-02 15:04:05"),
UpdateAt: now.Format("2006-01-02 15:04:05"),
settingDb := implement.NewEggEnergyBasicSettingDb(db.Db)
basic, err1 := settingDb.EggEnergyBasicSettingGetOne()
if err1 != nil {
e.OutErr(c, e.ERR_DB_ORM, err1.Error())
return
}
dividendsDb := implement.NewEggEnergyCommunityDividendsDb(db.Db)
id, err := dividendsDb.EggEnergyCommunityDividendsInsert(&m)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
err2 := ruleSvc.AddCommunityDividends(db.Db, req.Nums, req.Name, *basic)
if err2 != nil {
e.OutErr(c, e.ERR_DB_ORM, err2.Error())
return
}
e.OutSuc(c, id, nil)

e.OutSuc(c, "success", nil)
}

// ListCommunityDividendsWithUser


+ 65
- 0
app/md/institutional_management/egg_energy/md_basic.go View File

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

import (
"code.fnuoos.com/EggPlanet/egg_system_rules.git/rule/egg_energy/md"
"time"
)

type VirtualCoin struct {
Id int `json:"id" `
Name string `json:"name" ` // 名称
ExchangeRatio string `json:"exchange_ratio" ` // 兑换比例(与金额)
IsUse int `json:"is_use" ` // 是否开启: 0否 1是
CreateAt time.Time `json:"create_at" `
UpdateAt time.Time `json:"update_at" `
}

// BasicSetting 基础设置
type BasicSetting struct {
IsOpen int `json:"is_open" ` // 是否开启(1:开启 0:关闭)
PersonEggEnergyCoinId int `json:"person_egg_energy_coin_id" ` // 个人蛋蛋能量对应虚拟币 id
TeamEggEnergyCoinId int `json:"team_egg_energy_coin_id" ` // 团队蛋蛋能量对应虚拟币 id
PersonEggPointsCoinId int `json:"person_egg_points_coin_id" ` // 个人蛋蛋积分对应虚拟币 id
TeamEggPointsCoinId int `json:"team_egg_points_coin_id" ` // 团队蛋蛋积分对应虚拟币 id
DirectPushReward string `json:"direct_push_reward" ` // 直推奖励
}

// VideoRewardSetting 视频奖励
type VideoRewardSetting struct {
VideoRewardIsOpen int `json:"video_reward_is_open" ` // 视频奖励是否开启(1:开启 0:关闭)
VideoRewardSystem md.VideoRewardSystemStruct `json:"video_reward_system"` // 视频奖励机制
}

// DataSetting 数据设置
type DataSetting struct {
TotalIssuanceAmount string `json:"total_issuance_amount"` // 总发行量
TotalTechnologyTeam string `json:"total_technology_team"` // 技术团队
TotalAngelInvestor string `json:"total_angel_investor"` // 天使投资人
TotalOperateFund string `json:"total_operate_fund"` // 运营资金
TotalEcologicalDevelopment string `json:"total_ecological_development"` // 生态建设
TotalUserForPerson string `json:"total_user_for_person"` // 个人区域
TotalUserForTeam string `json:"total_user_for_team"` // 团队区域

}

type GetEggEnergyBasicResp struct {
BasicSetting BasicSetting `json:"basic_setting"` // 基础设置
VideoRewardSetting VideoRewardSetting `json:"video_reward_setting"` // 视频奖励
DataSetting DataSetting `json:"data_setting"` // 数据设置
DestructionSetting md.DestructionSettingStruct `json:"destruction_setting"` // 销毁设置
PriceSetting md.PriceSettingStruct `json:"price_setting"` // 价格设置
ExchangeRules md.ExchangeRulesStruct `json:"exchange_rules"` // 兑换规则
RewardSystem md.RewardSystemStruct `json:"reward_system"` // 圈层奖励
SystemID int `json:"system_id"` // 该设置系统 ID
}

type UpdateEggEnergyBasicReq struct {
SystemID int `json:"system_id,required"` // 该设置系统 ID
BasicSetting BasicSetting `json:"basic_setting"` // 基础设置
VideoRewardSetting VideoRewardSetting `json:"video_reward_setting"` // 视频奖励
DataSetting DataSetting `json:"data_setting"` // 数据设置
DestructionSetting md.DestructionSettingStruct `json:"destruction_setting"` // 销毁设置
PriceSetting md.PriceSettingStruct `json:"price_setting"` // 价格设置
ExchangeRules md.ExchangeRulesStruct `json:"exchange_rules"` // 兑换规则
RewardSystem md.RewardSystemStruct `json:"reward_system"` // 圈层奖励
}

+ 1
- 1
app/md/institutional_management/public_platoon/md_public_platoon.go View File

@@ -118,7 +118,7 @@ type ListCommunityDividendsResp struct {

type AddCommunityDividendsReq struct {
Name string `json:"name,required" example:"社区分红名称"`
Nums int `json:"nums,required"` // 社区分红数量
Nums string `json:"nums,required"` // 社区分红数量
}

type ListCommunityDividendsWithUserReq struct {


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

@@ -86,6 +86,7 @@ func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理
}
rEggEnergy := r.Group("/eggEnergy")
{
rEggEnergy.GET("/getVirtualCoinList", egg_energy.GetVirtualCoinList)
rEggEnergy.GET("/getBasic", egg_energy.GetEggEnergyBasic)
rEggEnergy.POST("/updateBasic", egg_energy.UpdateEggEnergyBasic)
rEggEnergyUserCoin := rEggEnergy.Group("/userCoin")


+ 465
- 42
docs/docs.go View File

@@ -65,7 +65,7 @@ const docTemplate = `{
},
"/api/institutionalManagement/eggEnergy/availableEnergy/list": {
"post": {
"description": "动态数据流水(获取)",
"description": "查询所有币种(获取)",
"consumes": [
"application/json"
],
@@ -73,9 +73,9 @@ const docTemplate = `{
"application/json"
],
"tags": [
"公排管理"
"蛋蛋能量"
],
"summary": "制度中心-动态数据-动态数据流水(获取)",
"summary": "制度中心-蛋蛋能量-查询所有币种(获取)",
"parameters": [
{
"type": "string",
@@ -83,22 +83,101 @@ const docTemplate = `{
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "成功返回",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/md.VirtualCoin"
}
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggEnergy/getBasic": {
"get": {
"description": "基础设置(获取)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋能量"
],
"summary": "制度中心-蛋蛋能量-基础设置(获取)",
"parameters": [
{
"description": "页数、每页大小必传 起止时间、持有类型选传",
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.GetEggEnergyBasicResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggEnergy/updateBasic": {
"post": {
"description": "基础设置(获取)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋能量"
],
"summary": "制度中心-蛋蛋能量-基础设置(获取)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "system_id 必填",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DynamicDataFlowListReq"
"$ref": "#/definitions/md.UpdateEggEnergyBasicReq"
}
}
],
"responses": {
"200": {
"description": "成功返回",
"description": "修改数据条数",
"schema": {
"$ref": "#/definitions/md.DynamicDataFlowListResp"
"type": "int"
}
},
"400": {
@@ -329,9 +408,9 @@ const docTemplate = `{
],
"responses": {
"200": {
"description": "插入数据 ID",
"description": "成功",
"schema": {
"type": "int"
"type": "success"
}
},
"400": {
@@ -941,6 +1020,35 @@ const docTemplate = `{
}
},
"definitions": {
"applet_app_md_institutional_management_egg_energy.BasicSetting": {
"type": "object",
"properties": {
"direct_push_reward": {
"description": "直推奖励",
"type": "string"
},
"is_open": {
"description": "是否开启(1:开启 0:关闭)",
"type": "integer"
},
"person_egg_energy_coin_id": {
"description": "个人蛋蛋能量对应虚拟币 id",
"type": "integer"
},
"person_egg_points_coin_id": {
"description": "个人蛋蛋积分对应虚拟币 id",
"type": "integer"
},
"team_egg_energy_coin_id": {
"description": "团队蛋蛋能量对应虚拟币 id",
"type": "integer"
},
"team_egg_points_coin_id": {
"description": "团队蛋蛋积分对应虚拟币 id",
"type": "integer"
}
}
},
"applet_app_md_institutional_management_egg_energy.Paginate": {
"type": "object",
"properties": {
@@ -958,6 +1066,42 @@ const docTemplate = `{
}
}
},
"applet_app_md_institutional_management_public_platoon.BasicSetting": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"is_open": {
"description": "是否开启(1:开启 0:关闭)",
"type": "integer"
},
"is_self_active_get_team_revenue": {
"description": "会员本人没有日活,没有圈层奖励(1:开启 0:关闭)",
"type": "integer"
},
"originator_uid": {
"description": "创始人uid",
"type": "integer"
},
"several_rows": {
"description": "几排",
"type": "integer"
},
"several_times": {
"description": "几乘",
"type": "integer"
},
"system_punish_replace": {
"description": "是否位置滑落 被新用户替换 0否 1是",
"type": "integer"
},
"system_punish_replace_value": {
"description": "xx天未活跃,处罚滑落",
"type": "integer"
}
}
},
"applet_app_md_institutional_management_public_platoon.Paginate": {
"type": "object",
"properties": {
@@ -1005,7 +1149,7 @@ const docTemplate = `{
},
"nums": {
"description": "社区分红数量",
"type": "integer"
"type": "string"
}
}
},
@@ -1030,56 +1174,82 @@ const docTemplate = `{
}
}
},
"md.BasicSetting": {
"md.DailyActivityAnalysisTopData": {
"type": "object",
"properties": {
"id": {
"activity_count": {
"description": "子节点活跃天数",
"type": "integer"
},
"is_open": {
"description": "是否开启(1:开启 0:关闭)",
"team_activity_user_count": {
"description": "子节点活跃人数",
"type": "integer"
},
"is_self_active_get_team_revenue": {
"description": "会员本人没有日活,没有圈层奖励(1:开启 0:关闭)",
"team_user_count": {
"description": "团队人数",
"type": "integer"
}
}
},
"md.DataSetting": {
"type": "object",
"properties": {
"total_angel_investor": {
"description": "天使投资人",
"type": "string"
},
"originator_uid": {
"description": "创始人uid",
"type": "integer"
"total_ecological_development": {
"description": "生态建设",
"type": "string"
},
"several_rows": {
"description": "几排",
"type": "integer"
"total_issuance_amount": {
"description": "总发行量",
"type": "string"
},
"several_times": {
"description": "几乘",
"type": "integer"
"total_operate_fund": {
"description": "运营资金",
"type": "string"
},
"system_punish_replace": {
"description": "是否位置滑落 被新用户替换 0否 1是",
"type": "integer"
"total_technology_team": {
"description": "技术团队",
"type": "string"
},
"system_punish_replace_value": {
"description": "xx天未活跃,处罚滑落",
"type": "integer"
"total_user_for_person": {
"description": "个人区域",
"type": "string"
},
"total_user_for_team": {
"description": "团队区域",
"type": "string"
}
}
},
"md.DailyActivityAnalysisTopData": {
"md.DestructionSettingStruct": {
"type": "object",
"properties": {
"activity_count": {
"description": "子节点活跃天数",
"type": "integer"
"community_dividends": {
"description": "社区分红百分比",
"type": "string"
},
"team_activity_user_count": {
"description": "子节点活跃人数",
"type": "integer"
"destruction_quantity": {
"description": "销毁百分比",
"type": "string"
},
"team_user_count": {
"description": "团队人数",
"type": "integer"
"development_committee": {
"description": "发展委员会百分比",
"type": "string"
},
"marketplace_merchant": {
"description": "市商数量百分比",
"type": "string"
},
"public_welfare_and_charity": {
"description": "公益慈善百分比",
"type": "string"
},
"star_level_dividends": {
"description": "星级分红百分比",
"type": "string"
}
}
},
@@ -1267,6 +1437,27 @@ const docTemplate = `{
}
}
},
"md.ExchangeRulesStruct": {
"type": "object",
"properties": {
"auto_exchange_nums_by_person": {
"description": "个人数量X个,自动兑换可用蛋蛋能量",
"type": "string"
},
"auto_exchange_nums_by_team": {
"description": "团队数量X个,自动兑换团队蛋蛋能量",
"type": "string"
},
"auto_exchange_rate_by_person": {
"description": "个人数量百分比,自动兑换可用蛋蛋能量",
"type": "string"
},
"auto_exchange_rate_by_team": {
"description": "团队数量百分比,自动兑换团队蛋蛋能量",
"type": "string"
}
}
},
"md.ExchangeUserPositionReq": {
"type": "object",
"properties": {
@@ -1287,7 +1478,7 @@ const docTemplate = `{
"description": "公排设置",
"allOf": [
{
"$ref": "#/definitions/md.BasicSetting"
"$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.BasicSetting"
}
]
},
@@ -1446,6 +1637,71 @@ const docTemplate = `{
}
}
},
"md.GetEggEnergyBasicResp": {
"type": "object",
"properties": {
"basic_setting": {
"description": "基础设置",
"allOf": [
{
"$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting"
}
]
},
"data_setting": {
"description": "数据设置",
"allOf": [
{
"$ref": "#/definitions/md.DataSetting"
}
]
},
"destruction_setting": {
"description": "销毁设置",
"allOf": [
{
"$ref": "#/definitions/md.DestructionSettingStruct"
}
]
},
"exchange_rules": {
"description": "兑换规则",
"allOf": [
{
"$ref": "#/definitions/md.ExchangeRulesStruct"
}
]
},
"price_setting": {
"description": "价格设置",
"allOf": [
{
"$ref": "#/definitions/md.PriceSettingStruct"
}
]
},
"reward_system": {
"description": "圈层奖励",
"allOf": [
{
"$ref": "#/definitions/md.RewardSystemStruct"
}
]
},
"system_id": {
"description": "该设置系统 ID",
"type": "integer"
},
"video_reward_setting": {
"description": "视频奖励",
"allOf": [
{
"$ref": "#/definitions/md.VideoRewardSetting"
}
]
}
}
},
"md.GetFreePublishUserReq": {
"type": "object",
"properties": {
@@ -1744,6 +2000,27 @@ const docTemplate = `{
}
}
},
"md.PriceSettingStruct": {
"type": "object",
"properties": {
"marketplace_merchants_fund_exchange_marketplace_merchants_nums_value": {
"description": "市商资金单笔x元自动兑换",
"type": "string"
},
"marketplace_merchants_nums_exchange_marketplace_merchants_fund_value": {
"description": "市商数量单笔x数量自动兑换",
"type": "string"
},
"price_below_value": {
"description": "低于x元",
"type": "string"
},
"price_higher_than_value": {
"description": "高于x元",
"type": "string"
}
}
},
"md.Response": {
"type": "object",
"properties": {
@@ -1760,6 +2037,23 @@ const docTemplate = `{
}
}
},
"md.RewardSystemStruct": {
"type": "object",
"properties": {
"level": {
"description": "圈层",
"type": "integer"
},
"reward_condition": {
"description": "奖励条件",
"type": "string"
},
"reward_value": {
"description": "奖励值",
"type": "string"
}
}
},
"md.SelectData": {
"type": "object",
"properties": {
@@ -1865,6 +2159,71 @@ const docTemplate = `{
}
}
},
"md.UpdateEggEnergyBasicReq": {
"type": "object",
"properties": {
"basic_setting": {
"description": "基础设置",
"allOf": [
{
"$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting"
}
]
},
"data_setting": {
"description": "数据设置",
"allOf": [
{
"$ref": "#/definitions/md.DataSetting"
}
]
},
"destruction_setting": {
"description": "销毁设置",
"allOf": [
{
"$ref": "#/definitions/md.DestructionSettingStruct"
}
]
},
"exchange_rules": {
"description": "兑换规则",
"allOf": [
{
"$ref": "#/definitions/md.ExchangeRulesStruct"
}
]
},
"price_setting": {
"description": "价格设置",
"allOf": [
{
"$ref": "#/definitions/md.PriceSettingStruct"
}
]
},
"reward_system": {
"description": "圈层奖励",
"allOf": [
{
"$ref": "#/definitions/md.RewardSystemStruct"
}
]
},
"system_id": {
"description": "该设置系统 ID",
"type": "integer"
},
"video_reward_setting": {
"description": "视频奖励",
"allOf": [
{
"$ref": "#/definitions/md.VideoRewardSetting"
}
]
}
}
},
"md.UpdatePublicPlatoonBasicReq": {
"type": "object",
"properties": {
@@ -1995,6 +2354,70 @@ const docTemplate = `{
}
}
},
"md.VideoRewardSetting": {
"type": "object",
"properties": {
"video_reward_is_open": {
"description": "视频奖励是否开启(1:开启 0:关闭)",
"type": "integer"
},
"video_reward_system": {
"description": "视频奖励机制",
"allOf": [
{
"$ref": "#/definitions/md.VideoRewardSystemStruct"
}
]
}
}
},
"md.VideoRewardSystemStruct": {
"type": "object",
"properties": {
"each_round_hour": {
"description": "每一轮X个小时",
"type": "string"
},
"interval_minutes": {
"description": "间隔X秒",
"type": "string"
},
"reward_total_num": {
"description": "一共X个奖励视屏",
"type": "string"
},
"reward_value": {
"description": "奖励X个活跃积分",
"type": "string"
}
}
},
"md.VirtualCoin": {
"type": "object",
"properties": {
"create_at": {
"type": "string"
},
"exchange_ratio": {
"description": "兑换比例(与金额)",
"type": "string"
},
"id": {
"type": "integer"
},
"is_use": {
"description": "是否开启: 0否 1是",
"type": "integer"
},
"name": {
"description": "名称",
"type": "string"
},
"update_at": {
"type": "string"
}
}
},
"md.VirtualCoinListNode": {
"type": "object",
"properties": {


+ 465
- 42
docs/swagger.json View File

@@ -58,7 +58,7 @@
},
"/api/institutionalManagement/eggEnergy/availableEnergy/list": {
"post": {
"description": "动态数据流水(获取)",
"description": "查询所有币种(获取)",
"consumes": [
"application/json"
],
@@ -66,9 +66,9 @@
"application/json"
],
"tags": [
"公排管理"
"蛋蛋能量"
],
"summary": "制度中心-动态数据-动态数据流水(获取)",
"summary": "制度中心-蛋蛋能量-查询所有币种(获取)",
"parameters": [
{
"type": "string",
@@ -76,22 +76,101 @@
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "成功返回",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/md.VirtualCoin"
}
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggEnergy/getBasic": {
"get": {
"description": "基础设置(获取)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋能量"
],
"summary": "制度中心-蛋蛋能量-基础设置(获取)",
"parameters": [
{
"description": "页数、每页大小必传 起止时间、持有类型选传",
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.GetEggEnergyBasicResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/eggEnergy/updateBasic": {
"post": {
"description": "基础设置(获取)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"蛋蛋能量"
],
"summary": "制度中心-蛋蛋能量-基础设置(获取)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "system_id 必填",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.DynamicDataFlowListReq"
"$ref": "#/definitions/md.UpdateEggEnergyBasicReq"
}
}
],
"responses": {
"200": {
"description": "成功返回",
"description": "修改数据条数",
"schema": {
"$ref": "#/definitions/md.DynamicDataFlowListResp"
"type": "int"
}
},
"400": {
@@ -322,9 +401,9 @@
],
"responses": {
"200": {
"description": "插入数据 ID",
"description": "成功",
"schema": {
"type": "int"
"type": "success"
}
},
"400": {
@@ -934,6 +1013,35 @@
}
},
"definitions": {
"applet_app_md_institutional_management_egg_energy.BasicSetting": {
"type": "object",
"properties": {
"direct_push_reward": {
"description": "直推奖励",
"type": "string"
},
"is_open": {
"description": "是否开启(1:开启 0:关闭)",
"type": "integer"
},
"person_egg_energy_coin_id": {
"description": "个人蛋蛋能量对应虚拟币 id",
"type": "integer"
},
"person_egg_points_coin_id": {
"description": "个人蛋蛋积分对应虚拟币 id",
"type": "integer"
},
"team_egg_energy_coin_id": {
"description": "团队蛋蛋能量对应虚拟币 id",
"type": "integer"
},
"team_egg_points_coin_id": {
"description": "团队蛋蛋积分对应虚拟币 id",
"type": "integer"
}
}
},
"applet_app_md_institutional_management_egg_energy.Paginate": {
"type": "object",
"properties": {
@@ -951,6 +1059,42 @@
}
}
},
"applet_app_md_institutional_management_public_platoon.BasicSetting": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"is_open": {
"description": "是否开启(1:开启 0:关闭)",
"type": "integer"
},
"is_self_active_get_team_revenue": {
"description": "会员本人没有日活,没有圈层奖励(1:开启 0:关闭)",
"type": "integer"
},
"originator_uid": {
"description": "创始人uid",
"type": "integer"
},
"several_rows": {
"description": "几排",
"type": "integer"
},
"several_times": {
"description": "几乘",
"type": "integer"
},
"system_punish_replace": {
"description": "是否位置滑落 被新用户替换 0否 1是",
"type": "integer"
},
"system_punish_replace_value": {
"description": "xx天未活跃,处罚滑落",
"type": "integer"
}
}
},
"applet_app_md_institutional_management_public_platoon.Paginate": {
"type": "object",
"properties": {
@@ -998,7 +1142,7 @@
},
"nums": {
"description": "社区分红数量",
"type": "integer"
"type": "string"
}
}
},
@@ -1023,56 +1167,82 @@
}
}
},
"md.BasicSetting": {
"md.DailyActivityAnalysisTopData": {
"type": "object",
"properties": {
"id": {
"activity_count": {
"description": "子节点活跃天数",
"type": "integer"
},
"is_open": {
"description": "是否开启(1:开启 0:关闭)",
"team_activity_user_count": {
"description": "子节点活跃人数",
"type": "integer"
},
"is_self_active_get_team_revenue": {
"description": "会员本人没有日活,没有圈层奖励(1:开启 0:关闭)",
"team_user_count": {
"description": "团队人数",
"type": "integer"
}
}
},
"md.DataSetting": {
"type": "object",
"properties": {
"total_angel_investor": {
"description": "天使投资人",
"type": "string"
},
"originator_uid": {
"description": "创始人uid",
"type": "integer"
"total_ecological_development": {
"description": "生态建设",
"type": "string"
},
"several_rows": {
"description": "几排",
"type": "integer"
"total_issuance_amount": {
"description": "总发行量",
"type": "string"
},
"several_times": {
"description": "几乘",
"type": "integer"
"total_operate_fund": {
"description": "运营资金",
"type": "string"
},
"system_punish_replace": {
"description": "是否位置滑落 被新用户替换 0否 1是",
"type": "integer"
"total_technology_team": {
"description": "技术团队",
"type": "string"
},
"system_punish_replace_value": {
"description": "xx天未活跃,处罚滑落",
"type": "integer"
"total_user_for_person": {
"description": "个人区域",
"type": "string"
},
"total_user_for_team": {
"description": "团队区域",
"type": "string"
}
}
},
"md.DailyActivityAnalysisTopData": {
"md.DestructionSettingStruct": {
"type": "object",
"properties": {
"activity_count": {
"description": "子节点活跃天数",
"type": "integer"
"community_dividends": {
"description": "社区分红百分比",
"type": "string"
},
"team_activity_user_count": {
"description": "子节点活跃人数",
"type": "integer"
"destruction_quantity": {
"description": "销毁百分比",
"type": "string"
},
"team_user_count": {
"description": "团队人数",
"type": "integer"
"development_committee": {
"description": "发展委员会百分比",
"type": "string"
},
"marketplace_merchant": {
"description": "市商数量百分比",
"type": "string"
},
"public_welfare_and_charity": {
"description": "公益慈善百分比",
"type": "string"
},
"star_level_dividends": {
"description": "星级分红百分比",
"type": "string"
}
}
},
@@ -1260,6 +1430,27 @@
}
}
},
"md.ExchangeRulesStruct": {
"type": "object",
"properties": {
"auto_exchange_nums_by_person": {
"description": "个人数量X个,自动兑换可用蛋蛋能量",
"type": "string"
},
"auto_exchange_nums_by_team": {
"description": "团队数量X个,自动兑换团队蛋蛋能量",
"type": "string"
},
"auto_exchange_rate_by_person": {
"description": "个人数量百分比,自动兑换可用蛋蛋能量",
"type": "string"
},
"auto_exchange_rate_by_team": {
"description": "团队数量百分比,自动兑换团队蛋蛋能量",
"type": "string"
}
}
},
"md.ExchangeUserPositionReq": {
"type": "object",
"properties": {
@@ -1280,7 +1471,7 @@
"description": "公排设置",
"allOf": [
{
"$ref": "#/definitions/md.BasicSetting"
"$ref": "#/definitions/applet_app_md_institutional_management_public_platoon.BasicSetting"
}
]
},
@@ -1439,6 +1630,71 @@
}
}
},
"md.GetEggEnergyBasicResp": {
"type": "object",
"properties": {
"basic_setting": {
"description": "基础设置",
"allOf": [
{
"$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting"
}
]
},
"data_setting": {
"description": "数据设置",
"allOf": [
{
"$ref": "#/definitions/md.DataSetting"
}
]
},
"destruction_setting": {
"description": "销毁设置",
"allOf": [
{
"$ref": "#/definitions/md.DestructionSettingStruct"
}
]
},
"exchange_rules": {
"description": "兑换规则",
"allOf": [
{
"$ref": "#/definitions/md.ExchangeRulesStruct"
}
]
},
"price_setting": {
"description": "价格设置",
"allOf": [
{
"$ref": "#/definitions/md.PriceSettingStruct"
}
]
},
"reward_system": {
"description": "圈层奖励",
"allOf": [
{
"$ref": "#/definitions/md.RewardSystemStruct"
}
]
},
"system_id": {
"description": "该设置系统 ID",
"type": "integer"
},
"video_reward_setting": {
"description": "视频奖励",
"allOf": [
{
"$ref": "#/definitions/md.VideoRewardSetting"
}
]
}
}
},
"md.GetFreePublishUserReq": {
"type": "object",
"properties": {
@@ -1737,6 +1993,27 @@
}
}
},
"md.PriceSettingStruct": {
"type": "object",
"properties": {
"marketplace_merchants_fund_exchange_marketplace_merchants_nums_value": {
"description": "市商资金单笔x元自动兑换",
"type": "string"
},
"marketplace_merchants_nums_exchange_marketplace_merchants_fund_value": {
"description": "市商数量单笔x数量自动兑换",
"type": "string"
},
"price_below_value": {
"description": "低于x元",
"type": "string"
},
"price_higher_than_value": {
"description": "高于x元",
"type": "string"
}
}
},
"md.Response": {
"type": "object",
"properties": {
@@ -1753,6 +2030,23 @@
}
}
},
"md.RewardSystemStruct": {
"type": "object",
"properties": {
"level": {
"description": "圈层",
"type": "integer"
},
"reward_condition": {
"description": "奖励条件",
"type": "string"
},
"reward_value": {
"description": "奖励值",
"type": "string"
}
}
},
"md.SelectData": {
"type": "object",
"properties": {
@@ -1858,6 +2152,71 @@
}
}
},
"md.UpdateEggEnergyBasicReq": {
"type": "object",
"properties": {
"basic_setting": {
"description": "基础设置",
"allOf": [
{
"$ref": "#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting"
}
]
},
"data_setting": {
"description": "数据设置",
"allOf": [
{
"$ref": "#/definitions/md.DataSetting"
}
]
},
"destruction_setting": {
"description": "销毁设置",
"allOf": [
{
"$ref": "#/definitions/md.DestructionSettingStruct"
}
]
},
"exchange_rules": {
"description": "兑换规则",
"allOf": [
{
"$ref": "#/definitions/md.ExchangeRulesStruct"
}
]
},
"price_setting": {
"description": "价格设置",
"allOf": [
{
"$ref": "#/definitions/md.PriceSettingStruct"
}
]
},
"reward_system": {
"description": "圈层奖励",
"allOf": [
{
"$ref": "#/definitions/md.RewardSystemStruct"
}
]
},
"system_id": {
"description": "该设置系统 ID",
"type": "integer"
},
"video_reward_setting": {
"description": "视频奖励",
"allOf": [
{
"$ref": "#/definitions/md.VideoRewardSetting"
}
]
}
}
},
"md.UpdatePublicPlatoonBasicReq": {
"type": "object",
"properties": {
@@ -1988,6 +2347,70 @@
}
}
},
"md.VideoRewardSetting": {
"type": "object",
"properties": {
"video_reward_is_open": {
"description": "视频奖励是否开启(1:开启 0:关闭)",
"type": "integer"
},
"video_reward_system": {
"description": "视频奖励机制",
"allOf": [
{
"$ref": "#/definitions/md.VideoRewardSystemStruct"
}
]
}
}
},
"md.VideoRewardSystemStruct": {
"type": "object",
"properties": {
"each_round_hour": {
"description": "每一轮X个小时",
"type": "string"
},
"interval_minutes": {
"description": "间隔X秒",
"type": "string"
},
"reward_total_num": {
"description": "一共X个奖励视屏",
"type": "string"
},
"reward_value": {
"description": "奖励X个活跃积分",
"type": "string"
}
}
},
"md.VirtualCoin": {
"type": "object",
"properties": {
"create_at": {
"type": "string"
},
"exchange_ratio": {
"description": "兑换比例(与金额)",
"type": "string"
},
"id": {
"type": "integer"
},
"is_use": {
"description": "是否开启: 0否 1是",
"type": "integer"
},
"name": {
"description": "名称",
"type": "string"
},
"update_at": {
"type": "string"
}
}
},
"md.VirtualCoinListNode": {
"type": "object",
"properties": {


+ 308
- 37
docs/swagger.yaml View File

@@ -1,4 +1,25 @@
definitions:
applet_app_md_institutional_management_egg_energy.BasicSetting:
properties:
direct_push_reward:
description: 直推奖励
type: string
is_open:
description: 是否开启(1:开启 0:关闭)
type: integer
person_egg_energy_coin_id:
description: 个人蛋蛋能量对应虚拟币 id
type: integer
person_egg_points_coin_id:
description: 个人蛋蛋积分对应虚拟币 id
type: integer
team_egg_energy_coin_id:
description: 团队蛋蛋能量对应虚拟币 id
type: integer
team_egg_points_coin_id:
description: 团队蛋蛋积分对应虚拟币 id
type: integer
type: object
applet_app_md_institutional_management_egg_energy.Paginate:
properties:
limit:
@@ -11,6 +32,32 @@ definitions:
description: 总数据量
type: integer
type: object
applet_app_md_institutional_management_public_platoon.BasicSetting:
properties:
id:
type: integer
is_open:
description: 是否开启(1:开启 0:关闭)
type: integer
is_self_active_get_team_revenue:
description: 会员本人没有日活,没有圈层奖励(1:开启 0:关闭)
type: integer
originator_uid:
description: 创始人uid
type: integer
several_rows:
description: 几排
type: integer
several_times:
description: 几乘
type: integer
system_punish_replace:
description: 是否位置滑落 被新用户替换 0否 1是
type: integer
system_punish_replace_value:
description: xx天未活跃,处罚滑落
type: integer
type: object
applet_app_md_institutional_management_public_platoon.Paginate:
properties:
limit:
@@ -45,7 +92,7 @@ definitions:
type: string
nums:
description: 社区分红数量
type: integer
type: string
type: object
md.AddCommunityDividendsWithUserReq:
properties:
@@ -61,32 +108,6 @@ definitions:
uid:
type: integer
type: object
md.BasicSetting:
properties:
id:
type: integer
is_open:
description: 是否开启(1:开启 0:关闭)
type: integer
is_self_active_get_team_revenue:
description: 会员本人没有日活,没有圈层奖励(1:开启 0:关闭)
type: integer
originator_uid:
description: 创始人uid
type: integer
several_rows:
description: 几排
type: integer
several_times:
description: 几乘
type: integer
system_punish_replace:
description: 是否位置滑落 被新用户替换 0否 1是
type: integer
system_punish_replace_value:
description: xx天未活跃,处罚滑落
type: integer
type: object
md.DailyActivityAnalysisTopData:
properties:
activity_count:
@@ -99,6 +120,51 @@ definitions:
description: 团队人数
type: integer
type: object
md.DataSetting:
properties:
total_angel_investor:
description: 天使投资人
type: string
total_ecological_development:
description: 生态建设
type: string
total_issuance_amount:
description: 总发行量
type: string
total_operate_fund:
description: 运营资金
type: string
total_technology_team:
description: 技术团队
type: string
total_user_for_person:
description: 个人区域
type: string
total_user_for_team:
description: 团队区域
type: string
type: object
md.DestructionSettingStruct:
properties:
community_dividends:
description: 社区分红百分比
type: string
destruction_quantity:
description: 销毁百分比
type: string
development_committee:
description: 发展委员会百分比
type: string
marketplace_merchant:
description: 市商数量百分比
type: string
public_welfare_and_charity:
description: 公益慈善百分比
type: string
star_level_dividends:
description: 星级分红百分比
type: string
type: object
md.DynamicDataFlowListReq:
properties:
end_at:
@@ -225,6 +291,21 @@ definitions:
uid:
type: integer
type: object
md.ExchangeRulesStruct:
properties:
auto_exchange_nums_by_person:
description: 个人数量X个,自动兑换可用蛋蛋能量
type: string
auto_exchange_nums_by_team:
description: 团队数量X个,自动兑换团队蛋蛋能量
type: string
auto_exchange_rate_by_person:
description: 个人数量百分比,自动兑换可用蛋蛋能量
type: string
auto_exchange_rate_by_team:
description: 团队数量百分比,自动兑换团队蛋蛋能量
type: string
type: object
md.ExchangeUserPositionReq:
properties:
position_1:
@@ -238,7 +319,7 @@ definitions:
properties:
basic_setting:
allOf:
- $ref: '#/definitions/md.BasicSetting'
- $ref: '#/definitions/applet_app_md_institutional_management_public_platoon.BasicSetting'
description: 公排设置
search_uid:
description: 查找的用户 ID
@@ -345,6 +426,40 @@ definitions:
description: 持有该类型用户数
type: integer
type: object
md.GetEggEnergyBasicResp:
properties:
basic_setting:
allOf:
- $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting'
description: 基础设置
data_setting:
allOf:
- $ref: '#/definitions/md.DataSetting'
description: 数据设置
destruction_setting:
allOf:
- $ref: '#/definitions/md.DestructionSettingStruct'
description: 销毁设置
exchange_rules:
allOf:
- $ref: '#/definitions/md.ExchangeRulesStruct'
description: 兑换规则
price_setting:
allOf:
- $ref: '#/definitions/md.PriceSettingStruct'
description: 价格设置
reward_system:
allOf:
- $ref: '#/definitions/md.RewardSystemStruct'
description: 圈层奖励
system_id:
description: 该设置系统 ID
type: integer
video_reward_setting:
allOf:
- $ref: '#/definitions/md.VideoRewardSetting'
description: 视频奖励
type: object
md.GetFreePublishUserReq:
properties:
limit:
@@ -549,6 +664,21 @@ definitions:
token:
type: string
type: object
md.PriceSettingStruct:
properties:
marketplace_merchants_fund_exchange_marketplace_merchants_nums_value:
description: 市商资金单笔x元自动兑换
type: string
marketplace_merchants_nums_exchange_marketplace_merchants_fund_value:
description: 市商数量单笔x数量自动兑换
type: string
price_below_value:
description: 低于x元
type: string
price_higher_than_value:
description: 高于x元
type: string
type: object
md.Response:
properties:
code:
@@ -560,6 +690,18 @@ definitions:
example: 具体错误原因
type: string
type: object
md.RewardSystemStruct:
properties:
level:
description: 圈层
type: integer
reward_condition:
description: 奖励条件
type: string
reward_value:
description: 奖励值
type: string
type: object
md.SelectData:
properties:
direction:
@@ -633,6 +775,40 @@ definitions:
uid:
type: integer
type: object
md.UpdateEggEnergyBasicReq:
properties:
basic_setting:
allOf:
- $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.BasicSetting'
description: 基础设置
data_setting:
allOf:
- $ref: '#/definitions/md.DataSetting'
description: 数据设置
destruction_setting:
allOf:
- $ref: '#/definitions/md.DestructionSettingStruct'
description: 销毁设置
exchange_rules:
allOf:
- $ref: '#/definitions/md.ExchangeRulesStruct'
description: 兑换规则
price_setting:
allOf:
- $ref: '#/definitions/md.PriceSettingStruct'
description: 价格设置
reward_system:
allOf:
- $ref: '#/definitions/md.RewardSystemStruct'
description: 圈层奖励
system_id:
description: 该设置系统 ID
type: integer
video_reward_setting:
allOf:
- $ref: '#/definitions/md.VideoRewardSetting'
description: 视频奖励
type: object
md.UpdatePublicPlatoonBasicReq:
properties:
is_open:
@@ -725,6 +901,49 @@ definitions:
example: 更新时间
type: string
type: object
md.VideoRewardSetting:
properties:
video_reward_is_open:
description: 视频奖励是否开启(1:开启 0:关闭)
type: integer
video_reward_system:
allOf:
- $ref: '#/definitions/md.VideoRewardSystemStruct'
description: 视频奖励机制
type: object
md.VideoRewardSystemStruct:
properties:
each_round_hour:
description: 每一轮X个小时
type: string
interval_minutes:
description: 间隔X秒
type: string
reward_total_num:
description: 一共X个奖励视屏
type: string
reward_value:
description: 奖励X个活跃积分
type: string
type: object
md.VirtualCoin:
properties:
create_at:
type: string
exchange_ratio:
description: 兑换比例(与金额)
type: string
id:
type: integer
is_use:
description: '是否开启: 0否 1是'
type: integer
name:
description: 名称
type: string
update_at:
type: string
type: object
md.VirtualCoinListNode:
properties:
coin_id:
@@ -781,33 +1000,85 @@ paths:
post:
consumes:
- application/json
description: 动态数据流水(获取)
description: 查询所有币种(获取)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
produces:
- application/json
responses:
"200":
description: 成功返回
schema:
items:
$ref: '#/definitions/md.VirtualCoin'
type: array
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-蛋蛋能量-查询所有币种(获取)
tags:
- 蛋蛋能量
/api/institutionalManagement/eggEnergy/getBasic:
get:
consumes:
- application/json
description: 基础设置(获取)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
produces:
- application/json
responses:
"200":
description: 具体数据
schema:
$ref: '#/definitions/md.GetEggEnergyBasicResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-蛋蛋能量-基础设置(获取)
tags:
- 蛋蛋能量
/api/institutionalManagement/eggEnergy/updateBasic:
post:
consumes:
- application/json
description: 基础设置(获取)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 页数、每页大小必传 起止时间、持有类型选传
- description: system_id 必填
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.DynamicDataFlowListReq'
$ref: '#/definitions/md.UpdateEggEnergyBasicReq'
produces:
- application/json
responses:
"200":
description: 成功返回
description: 修改数据条数
schema:
$ref: '#/definitions/md.DynamicDataFlowListResp'
type: int
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-动态数据-动态数据流水(获取)
summary: 制度中心-蛋蛋能量-基础设置(获取)
tags:
- 公排管理
- 蛋蛋能量
/api/institutionalManagement/eggEnergy/userCoin/activePointsUserCoinFlowList:
post:
consumes:
@@ -951,9 +1222,9 @@ paths:
- application/json
responses:
"200":
description: 插入数据 ID
description: 成功
schema:
type: int
type: success
"400":
description: 具体错误
schema:


Loading…
Cancel
Save