shenjiachi pirms 2 dienas
vecāks
revīzija
59e7803934
6 mainītis faili ar 21 papildinājumiem un 47 dzēšanām
  1. +7
    -32
      app/hdl/institutional_management/egg_energy/hdl_basic.go
  2. +1
    -1
      app/md/institutional_management/egg_energy/md_basic.go
  3. +4
    -5
      docs/docs.go
  4. +4
    -5
      docs/swagger.json
  5. +3
    -2
      docs/swagger.yaml
  6. +2
    -2
      go.mod

+ 7
- 32
app/hdl/institutional_management/egg_energy/hdl_basic.go Parādīt failu

@@ -83,7 +83,7 @@ func GetEggEnergyBasic(c *gin.Context) {
var exchangeRules md2.ExchangeRulesStruct
utils.Unserialize([]byte(basicSettings.ExchangeRules), &exchangeRules)

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

var newUserRewardRules md2.NewUserRewardRules
@@ -125,37 +125,12 @@ func GetEggEnergyBasic(c *gin.Context) {
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,
},
NewUserIncentiveRules: md2.NewUserRewardRules{
InviteUserRewardValue: newUserRewardRules.InviteUserRewardValue,
RewardCoefficient: newUserRewardRules.RewardCoefficient,
ContinueDays: newUserRewardRules.ContinueDays,
},
SystemID: basicSettings.Id,
DestructionSetting: destructionSetting,
PriceSetting: priceSetting,
ExchangeRules: exchangeRules,
RewardSystem: rewardSystem,
NewUserIncentiveRules: newUserRewardRules,
SystemID: basicSettings.Id,
}

e.OutSuc(c, resp, nil)


+ 1
- 1
app/md/institutional_management/egg_energy/md_basic.go Parādīt failu

@@ -52,7 +52,7 @@ type GetEggEnergyBasicResp struct {
DestructionSetting md.DestructionSettingStruct `json:"destruction_setting"` // 销毁设置
PriceSetting md.PriceSettingStruct `json:"price_setting"` // 价格设置
ExchangeRules md.ExchangeRulesStruct `json:"exchange_rules"` // 兑换规则
RewardSystem md.RewardSystemStruct `json:"reward_system"` // 圈层奖励
RewardSystem []md.RewardSystemStruct `json:"reward_system"` // 圈层奖励
NewUserIncentiveRules md.NewUserRewardRules `json:"new_user_incentive_rules"` // 新用户奖励规则
SystemID int `json:"system_id"` // 该设置系统 ID
}


+ 4
- 5
docs/docs.go Parādīt failu

@@ -3042,11 +3042,10 @@ const docTemplate = `{
},
"reward_system": {
"description": "圈层奖励",
"allOf": [
{
"$ref": "#/definitions/md.RewardSystemStruct"
}
]
"type": "array",
"items": {
"$ref": "#/definitions/md.RewardSystemStruct"
}
},
"system_id": {
"description": "该设置系统 ID",


+ 4
- 5
docs/swagger.json Parādīt failu

@@ -3035,11 +3035,10 @@
},
"reward_system": {
"description": "圈层奖励",
"allOf": [
{
"$ref": "#/definitions/md.RewardSystemStruct"
}
]
"type": "array",
"items": {
"$ref": "#/definitions/md.RewardSystemStruct"
}
},
"system_id": {
"description": "该设置系统 ID",


+ 3
- 2
docs/swagger.yaml Parādīt failu

@@ -615,9 +615,10 @@ definitions:
- $ref: '#/definitions/md.PriceSettingStruct'
description: 价格设置
reward_system:
allOf:
- $ref: '#/definitions/md.RewardSystemStruct'
description: 圈层奖励
items:
$ref: '#/definitions/md.RewardSystemStruct'
type: array
system_id:
description: 该设置系统 ID
type: integer


+ 2
- 2
go.mod Parādīt failu

@@ -2,9 +2,9 @@ module applet

go 1.19

//replace code.fnuoos.com/EggPlanet/egg_models.git => E:/company/Egg/egg_models
replace code.fnuoos.com/EggPlanet/egg_models.git => E:/company/Egg/egg_models

//replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules
replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules

require (
github.com/boombuler/barcode v1.0.1


Notiek ielāde…
Atcelt
Saglabāt