From 870f5f0cd8e50c5fdca36e99459b0101c1597591 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 20 Nov 2024 18:25:46 +0800 Subject: [PATCH] update --- app/hdl/institutional_management/egg_energy/hdl_basic.go | 1 + app/md/institutional_management/egg_energy/md_basic.go | 9 +++++---- docs/docs.go | 4 ++++ docs/swagger.json | 4 ++++ docs/swagger.yaml | 3 +++ 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/app/hdl/institutional_management/egg_energy/hdl_basic.go b/app/hdl/institutional_management/egg_energy/hdl_basic.go index 227b0c1..08f7723 100644 --- a/app/hdl/institutional_management/egg_energy/hdl_basic.go +++ b/app/hdl/institutional_management/egg_energy/hdl_basic.go @@ -245,6 +245,7 @@ func GetEggEnergyVipSetting(c *gin.Context) { list[i].VipLevelName = levelsMap[utils.StrToInt(settingStruct.VipLevelId)] list[i].ExchangeAccountBalanceFee = settingStruct.ExchangeAccountBalanceFee list[i].DividendRatio = settingStruct.DividendRatio + list[i].VipID = settingStruct.VipLevelId } resp := md.GetEggEnergyVipSettingResp{ diff --git a/app/md/institutional_management/egg_energy/md_basic.go b/app/md/institutional_management/egg_energy/md_basic.go index d82f092..1ff488a 100644 --- a/app/md/institutional_management/egg_energy/md_basic.go +++ b/app/md/institutional_management/egg_energy/md_basic.go @@ -10,9 +10,9 @@ const ( type VirtualCoin struct { Id int `json:"id" ` - Name string `json:"name" ` // 名称 + Name string `json:"name" ` // 名称 ExchangeRatio string `json:"exchange_ratio" example:"兑换比例(与金额)"` // 兑换比例(与金额) - IsUse int `json:"is_use" ` // 是否开启: 0否 1是 + IsUse int `json:"is_use" ` // 是否开启: 0否 1是 CreateAt string `json:"create_at" ` UpdateAt string `json:"update_at" ` } @@ -37,7 +37,7 @@ type VideoRewardSetting struct { type DataSetting struct { TotalIssuanceAmount string `json:"total_issuance_amount" example:"总发行量"` // 总发行量 TotalTechnologyTeam string `json:"total_technology_team" example:"技术团队"` // 技术团队 - TotalAngelInvestor string `json:"total_angel_investor" example:"天使投资人"` // 天使投资人 + TotalAngelInvestor string `json:"total_angel_investor" example:"天使投资人"` // 天使投资人 TotalOperateFund string `json:"total_operate_fund" example:"运营资金"` // 运营资金 TotalEcologicalDevelopment string `json:"total_ecological_development" example:"当前价格"` // 生态建设 TotalTeamDividends string `json:"total_team_dividends" example:"团队分红"` // 团队分红 @@ -70,6 +70,7 @@ type UpdateEggEnergyBasicReq struct { } type VipEquitySettingNode struct { + VipID string `json:"vip_id"` // 会员等级ID VipLevelName string `json:"vip_level_name"` // 会员等级名称 ExchangeAccountBalanceFee string `json:"exchange_account_balance_fee"` //兑换余额手续费 DividendRatio string `json:"dividend_ratio"` //分红比例 @@ -100,7 +101,7 @@ type GetEggCoreDataListResp struct { PlanetTotalValue string `json:"planet_total_value" example:"星球价值"` // 星球价值 NowPrice string `json:"now_price" example:"当前价格"` // 当前价格 NowEnergyTotalNums string `json:"now_energy_total_nums" example:"现行总量"` // 现行总量 - UserHoldTotalNums map[string]string `json:"user_hold_total_nums"` // 用户持有总量 + UserHoldTotalNums map[string]string `json:"user_hold_total_nums"` // 用户持有总量 } type GetPriceCurveResp struct { diff --git a/docs/docs.go b/docs/docs.go index ecda2aa..384f1c6 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -6595,6 +6595,10 @@ const docTemplate = `{ "description": "兑换余额手续费", "type": "string" }, + "vip_id": { + "description": "会员等级ID", + "type": "string" + }, "vip_level_name": { "description": "会员等级名称", "type": "string" diff --git a/docs/swagger.json b/docs/swagger.json index 0baf88b..f6e6a47 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -6588,6 +6588,10 @@ "description": "兑换余额手续费", "type": "string" }, + "vip_id": { + "description": "会员等级ID", + "type": "string" + }, "vip_level_name": { "description": "会员等级名称", "type": "string" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 3052a99..f749687 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -2467,6 +2467,9 @@ definitions: exchange_account_balance_fee: description: 兑换余额手续费 type: string + vip_id: + description: 会员等级ID + type: string vip_level_name: description: 会员等级名称 type: string