@@ -89,7 +89,7 @@ func GetEggEnergyBasic(c *gin.Context) { | |||||
var newUserRewardRules md2.NewUserRewardRules | var newUserRewardRules md2.NewUserRewardRules | ||||
utils.Unserialize([]byte(basicSettings.NewUserIncentiveRules), &newUserRewardRules) | utils.Unserialize([]byte(basicSettings.NewUserIncentiveRules), &newUserRewardRules) | ||||
var directPushReward md2.TeamRewardSettingStruct | |||||
var directPushReward md2.DirectPushRewardSettingStruct | |||||
utils.Unserialize([]byte(basicSettings.DirectPushReward), &directPushReward) | utils.Unserialize([]byte(basicSettings.DirectPushReward), &directPushReward) | ||||
resp := md.GetEggEnergyBasicResp{ | resp := md.GetEggEnergyBasicResp{ | ||||
@@ -99,11 +99,9 @@ func GetEggEnergyBasic(c *gin.Context) { | |||||
TeamEggEnergyCoinId: basicSettings.TeamEggEnergyCoinId, | TeamEggEnergyCoinId: basicSettings.TeamEggEnergyCoinId, | ||||
PersonEggPointsCoinId: basicSettings.PersonEggPointsCoinId, | PersonEggPointsCoinId: basicSettings.PersonEggPointsCoinId, | ||||
TeamEggPointsCoinId: basicSettings.TeamEggPointsCoinId, | TeamEggPointsCoinId: basicSettings.TeamEggPointsCoinId, | ||||
DirectPushReward: md2.TeamRewardSettingStruct{ | |||||
RewardDecrementValue: directPushReward.RewardDecrementValue, | |||||
RewardEndValue: directPushReward.RewardEndValue, | |||||
DirectPushReward: md2.DirectPushRewardSettingStruct{ | |||||
RewardRateValue: directPushReward.RewardRateValue, | |||||
MemberSelfIsOpenGetTeamReward: directPushReward.MemberSelfIsOpenGetTeamReward, | MemberSelfIsOpenGetTeamReward: directPushReward.MemberSelfIsOpenGetTeamReward, | ||||
OneRoundDuration: directPushReward.OneRoundDuration, | |||||
}, | }, | ||||
}, | }, | ||||
VideoRewardSetting: md.VideoRewardSetting{ | VideoRewardSetting: md.VideoRewardSetting{ | ||||
@@ -19,12 +19,12 @@ type VirtualCoin struct { | |||||
// BasicSetting 基础设置 | // BasicSetting 基础设置 | ||||
type BasicSetting struct { | 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 md.TeamRewardSettingStruct `json:"direct_push_reward"` // 直推奖励 | |||||
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 md.DirectPushRewardSettingStruct `json:"direct_push_reward"` // 直推奖励 | |||||
} | } | ||||
// VideoRewardSetting 视频奖励 | // VideoRewardSetting 视频奖励 | ||||
@@ -1,5 +1,4 @@ | |||||
// Code generated by swaggo/swag. DO NOT EDIT. | |||||
// Package docs Code generated by swaggo/swag. DO NOT EDIT | |||||
package docs | package docs | ||||
import "github.com/swaggo/swag" | import "github.com/swaggo/swag" | ||||
@@ -1353,9 +1352,7 @@ const docTemplate = `{ | |||||
"name": "req", | "name": "req", | ||||
"in": "body", | "in": "body", | ||||
"required": true, | "required": true, | ||||
"schema": { | |||||
"type": "object" | |||||
} | |||||
"schema": {} | |||||
} | } | ||||
], | ], | ||||
"responses": { | "responses": { | ||||
@@ -6423,7 +6420,7 @@ const docTemplate = `{ | |||||
"description": "直推奖励", | "description": "直推奖励", | ||||
"allOf": [ | "allOf": [ | ||||
{ | { | ||||
"$ref": "#/definitions/md.TeamRewardSettingStruct" | |||||
"$ref": "#/definitions/md.DirectPushRewardSettingStruct" | |||||
} | } | ||||
] | ] | ||||
}, | }, | ||||
@@ -7078,6 +7075,15 @@ const docTemplate = `{ | |||||
"md.AdvertisingListResp": { | "md.AdvertisingListResp": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
"adv_data": { | |||||
"type": "array", | |||||
"items": { | |||||
"type": "object", | |||||
"additionalProperties": { | |||||
"type": "string" | |||||
} | |||||
} | |||||
}, | |||||
"list": { | "list": { | ||||
"type": "array", | "type": "array", | ||||
"items": { | "items": { | ||||
@@ -7865,6 +7871,19 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"md.DirectPushRewardSettingStruct": { | |||||
"type": "object", | |||||
"properties": { | |||||
"member_self_is_open_get_team_reward": { | |||||
"description": "会员是否活跃得到团队奖励", | |||||
"type": "string" | |||||
}, | |||||
"reward_rate_value": { | |||||
"description": "奖励百分比", | |||||
"type": "string" | |||||
} | |||||
} | |||||
}, | |||||
"md.DynamicDataFlowListReq": { | "md.DynamicDataFlowListReq": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
@@ -10681,27 +10700,6 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"md.TeamRewardSettingStruct": { | |||||
"type": "object", | |||||
"properties": { | |||||
"member_self_is_open_get_team_reward": { | |||||
"description": "会员是否活跃得到团队奖励", | |||||
"type": "string" | |||||
}, | |||||
"one_round_duration": { | |||||
"description": "一轮持续时间", | |||||
"type": "string" | |||||
}, | |||||
"reward_decrement_value": { | |||||
"description": "递减百分比", | |||||
"type": "string" | |||||
}, | |||||
"reward_end_value": { | |||||
"description": "奖励结束值", | |||||
"type": "string" | |||||
} | |||||
} | |||||
}, | |||||
"md.TreeNode": { | "md.TreeNode": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
@@ -12355,6 +12353,8 @@ var SwaggerInfo = &swag.Spec{ | |||||
Description: "管理后台接口文档", | Description: "管理后台接口文档", | ||||
InfoInstanceName: "swagger", | InfoInstanceName: "swagger", | ||||
SwaggerTemplate: docTemplate, | SwaggerTemplate: docTemplate, | ||||
LeftDelim: "{{", | |||||
RightDelim: "}}", | |||||
} | } | ||||
func init() { | func init() { | ||||
@@ -1345,9 +1345,7 @@ | |||||
"name": "req", | "name": "req", | ||||
"in": "body", | "in": "body", | ||||
"required": true, | "required": true, | ||||
"schema": { | |||||
"type": "object" | |||||
} | |||||
"schema": {} | |||||
} | } | ||||
], | ], | ||||
"responses": { | "responses": { | ||||
@@ -6415,7 +6413,7 @@ | |||||
"description": "直推奖励", | "description": "直推奖励", | ||||
"allOf": [ | "allOf": [ | ||||
{ | { | ||||
"$ref": "#/definitions/md.TeamRewardSettingStruct" | |||||
"$ref": "#/definitions/md.DirectPushRewardSettingStruct" | |||||
} | } | ||||
] | ] | ||||
}, | }, | ||||
@@ -7070,6 +7068,15 @@ | |||||
"md.AdvertisingListResp": { | "md.AdvertisingListResp": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
"adv_data": { | |||||
"type": "array", | |||||
"items": { | |||||
"type": "object", | |||||
"additionalProperties": { | |||||
"type": "string" | |||||
} | |||||
} | |||||
}, | |||||
"list": { | "list": { | ||||
"type": "array", | "type": "array", | ||||
"items": { | "items": { | ||||
@@ -7857,6 +7864,19 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"md.DirectPushRewardSettingStruct": { | |||||
"type": "object", | |||||
"properties": { | |||||
"member_self_is_open_get_team_reward": { | |||||
"description": "会员是否活跃得到团队奖励", | |||||
"type": "string" | |||||
}, | |||||
"reward_rate_value": { | |||||
"description": "奖励百分比", | |||||
"type": "string" | |||||
} | |||||
} | |||||
}, | |||||
"md.DynamicDataFlowListReq": { | "md.DynamicDataFlowListReq": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
@@ -10673,27 +10693,6 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"md.TeamRewardSettingStruct": { | |||||
"type": "object", | |||||
"properties": { | |||||
"member_self_is_open_get_team_reward": { | |||||
"description": "会员是否活跃得到团队奖励", | |||||
"type": "string" | |||||
}, | |||||
"one_round_duration": { | |||||
"description": "一轮持续时间", | |||||
"type": "string" | |||||
}, | |||||
"reward_decrement_value": { | |||||
"description": "递减百分比", | |||||
"type": "string" | |||||
}, | |||||
"reward_end_value": { | |||||
"description": "奖励结束值", | |||||
"type": "string" | |||||
} | |||||
} | |||||
}, | |||||
"md.TreeNode": { | "md.TreeNode": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
@@ -57,7 +57,7 @@ definitions: | |||||
properties: | properties: | ||||
direct_push_reward: | direct_push_reward: | ||||
allOf: | allOf: | ||||
- $ref: '#/definitions/md.TeamRewardSettingStruct' | |||||
- $ref: '#/definitions/md.DirectPushRewardSettingStruct' | |||||
description: 直推奖励 | description: 直推奖励 | ||||
is_open: | is_open: | ||||
description: 是否开启(1:开启 0:关闭) | description: 是否开启(1:开启 0:关闭) | ||||
@@ -514,6 +514,12 @@ definitions: | |||||
type: object | type: object | ||||
md.AdvertisingListResp: | md.AdvertisingListResp: | ||||
properties: | properties: | ||||
adv_data: | |||||
items: | |||||
additionalProperties: | |||||
type: string | |||||
type: object | |||||
type: array | |||||
list: | list: | ||||
items: | items: | ||||
$ref: '#/definitions/md.AdvertisingList' | $ref: '#/definitions/md.AdvertisingList' | ||||
@@ -1052,6 +1058,15 @@ definitions: | |||||
description: 星级分红百分比 | description: 星级分红百分比 | ||||
type: string | type: string | ||||
type: object | type: object | ||||
md.DirectPushRewardSettingStruct: | |||||
properties: | |||||
member_self_is_open_get_team_reward: | |||||
description: 会员是否活跃得到团队奖励 | |||||
type: string | |||||
reward_rate_value: | |||||
description: 奖励百分比 | |||||
type: string | |||||
type: object | |||||
md.DynamicDataFlowListReq: | md.DynamicDataFlowListReq: | ||||
properties: | properties: | ||||
end_at: | end_at: | ||||
@@ -3024,21 +3039,6 @@ definitions: | |||||
description: 标签 名称 | description: 标签 名称 | ||||
type: string | type: string | ||||
type: object | type: object | ||||
md.TeamRewardSettingStruct: | |||||
properties: | |||||
member_self_is_open_get_team_reward: | |||||
description: 会员是否活跃得到团队奖励 | |||||
type: string | |||||
one_round_duration: | |||||
description: 一轮持续时间 | |||||
type: string | |||||
reward_decrement_value: | |||||
description: 递减百分比 | |||||
type: string | |||||
reward_end_value: | |||||
description: 奖励结束值 | |||||
type: string | |||||
type: object | |||||
md.TreeNode: | md.TreeNode: | ||||
properties: | properties: | ||||
avatar_url: | avatar_url: | ||||
@@ -5055,8 +5055,7 @@ paths: | |||||
in: body | in: body | ||||
name: req | name: req | ||||
required: true | required: true | ||||
schema: | |||||
type: object | |||||
schema: {} | |||||
produces: | produces: | ||||
- application/json | - application/json | ||||
responses: | responses: | ||||
@@ -33,8 +33,8 @@ require ( | |||||
) | ) | ||||
require ( | require ( | ||||
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241128084936-6c2fce34f497 | |||||
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241127101803-8cd39f7b84b2 | |||||
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241128030209-743f36ef9dad | |||||
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241128063602-ed11b9dad994 | |||||
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be | 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 | code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | ||||
github.com/360EntSecGroup-Skylar/excelize v1.4.1 | github.com/360EntSecGroup-Skylar/excelize v1.4.1 | ||||