|
- package md
-
- import (
- "code.fnuoos.com/EggPlanet/egg_system_rules.git/rule/egg_energy/md"
- )
-
- const (
- ExecutionInterval = 10
- )
-
- type VirtualCoin struct {
- Id int `json:"id" `
- Name string `json:"name" `
- ExchangeRatio string `json:"exchange_ratio" example:"兑换比例(与金额)"`
- IsUse int `json:"is_use" `
- CreateAt string `json:"create_at" `
- UpdateAt string `json:"update_at" `
- }
-
-
- type BasicSetting struct {
- IsOpen int `json:"is_open" `
- InitialPrice string `json:"initial_price" `
- PersonEggEnergyCoinId int `json:"person_egg_energy_coin_id" `
- TeamEggEnergyCoinId int `json:"team_egg_energy_coin_id" `
- PersonEggPointsCoinId int `json:"person_egg_points_coin_id" `
- TeamEggPointsCoinId int `json:"team_egg_points_coin_id" `
- DirectPushReward md.DirectPushRewardSettingStruct `json:"direct_push_reward"`
- }
-
-
- type VideoRewardSetting struct {
- VideoRewardIsOpen int `json:"video_reward_is_open" `
- VideoRewardSystem md.VideoRewardSystemStruct `json:"video_reward_system"`
- }
-
-
- type DataSetting struct {
- TotalIssuanceAmount string `json:"total_issuance_amount" example:"总发行量"`
- TotalTechnologyTeam string `json:"total_technology_team" 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:"团队分红"`
- TotalUserForPerson string `json:"total_user_for_person" example:"个人区域"`
- TotalUserForTeam string `json:"total_user_for_team" example:"团队区域"`
- }
-
- 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"`
- NewUserIncentiveRules md.NewUserRewardRules `json:"new_user_incentive_rules"`
- SystemID int `json:"system_id"`
- SettlementQuantity int `json:"settlement_quantity"`
- }
-
- type UpdateEggEnergyBasicReq struct {
- SystemID int `json:"system_id,required"`
- 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"`
- NewUserIncentiveRules md.NewUserRewardRules `json:"new_user_incentive_rules"`
- SettlementQuantity string `json:"settlement_quantity"`
- }
-
- type AddVirtualCoinNode struct {
- Name string `json:"name"`
- ExchangeRatio string `json:"exchange_ratio"`
- IsUse int `json:"is_use" `
- }
-
- type BatchAddVirtualCoinsReq struct {
- List []AddVirtualCoinNode `json:"list"`
- }
-
- type UpdateVirtualCoinReq struct {
- Id int `json:"id"`
- Name string `json:"name"`
- ExchangeRatio string `json:"exchange_ratio"`
- IsUse int `json:"is_use"`
-
- }
-
- type DeleteVirtualCoinReq struct {
- Id int `json:"id"`
- }
-
- type VipEquitySettingNode struct {
- VipLevelID string `json:"vip_level_id"`
- VipLevelName string `json:"vip_level_name"`
- ExchangeAccountBalanceFee string `json:"exchange_account_balance_fee"`
- DividendRatio string `json:"dividend_ratio"`
- }
-
- type GetEggEnergyVipSettingResp struct {
- LevelList []map[string]interface{} `json:"level_list"`
- List []VipEquitySettingNode `json:"list"`
- }
-
- type AddEggEnergyVipSettingReq struct {
- VipLevelId string `json:"vip_level_id"`
- ExchangeAccountBalanceFee string `json:"exchange_account_balance_fee"`
- DividendRatio string `json:"dividend_ratio"`
- }
-
- type UpdateVipEquitySettingNode struct {
- VipLevelID string `json:"vip_level_id"`
- ExchangeAccountBalanceFee string `json:"exchange_account_balance_fee"`
- DividendRatio string `json:"dividend_ratio"`
- }
-
- type UpdateEggEnergyVipSettingReq struct {
- List []UpdateVipEquitySettingNode `json:"list"`
- }
-
- 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 string `json:"user_hold_total_nums"`
- }
-
- type GetEggEnergyCoreDataResp struct {
- Id int `json:"id"`
- NowPrice string `json:"now_price"`
- PlanetTotalValue string `json:"planet_total_value"`
- NowEnergyTotalNums string `json:"now_energy_total_nums"`
- MarketplaceMerchantNums string `json:"marketplace_merchant_nums"`
- MarketplaceMerchantFunds string `json:"marketplace_merchant_funds"`
- DevelopmentCommittee string `json:"development_committee"`
- PublicWelfareAndCharity string `json:"public_welfare_and_charity"`
- StarLevelDividends string `json:"star_level_dividends"`
- CommunityDividends string `json:"community_dividends"`
- DestructionQuantityNums string `json:"destruction_quantity_nums"`
- }
-
- type UpdateEggEnergyCoreDataReq struct {
- Id int `json:"id"`
- NowPrice string `json:"now_price"`
- PlanetTotalValue string `json:"planet_total_value"`
- NowEnergyTotalNums string `json:"now_energy_total_nums"`
- MarketplaceMerchantNums string `json:"marketplace_merchant_nums"`
- MarketplaceMerchantFunds string `json:"marketplace_merchant_funds"`
- DevelopmentCommittee string `json:"development_committee"`
- PublicWelfareAndCharity string `json:"public_welfare_and_charity"`
- StarLevelDividends string `json:"star_level_dividends"`
- CommunityDividends string `json:"community_dividends"`
- }
-
- type GetPriceCurveResp struct {
- XData []interface{} `json:"x_data"`
- YData []interface{} `json:"y_data"`
- }
-
- type GetFundDataListReq struct {
- Kind int `json:"kind"`
- StartAt string `json:"start_at" example:"开始时间"`
- EndAt string `json:"end_at" example:"结束时间"`
- Page int `json:"page,required"`
- Limit int `json:"limit,required" `
- }
-
- type FundDataNode struct {
- SystemID int `json:"system_id"`
- Kind int `json:"kind" `
- TotalAmount string `json:"total_amount" `
- BalanceAmount string `json:"balance_amount" `
- Hours int `json:"hours" `
- BalanceTimes int `json:"balance_times" `
- Memo string `json:"memo" `
- CreateAt string `json:"create_at" `
- }
-
- type GetFundDataListResp struct {
- KindList []map[string]interface{} `json:"kind_list"`
- Paginate Paginate `json:"paginate"`
- List []FundDataNode `json:"list"`
- }
-
- type GetFundDataRecordListReq struct {
- SystemID int `json:"system_id,required"`
- Page int `json:"page,required"`
- Limit int `json:"limit,required"`
- }
-
- type FundDataRecordNode struct {
- TotalAmount string `json:"total_amount" `
- BalanceAmount string `json:"balance_amount" `
- BalanceTimes int `json:"balance_times" `
- BeforePrice string `json:"before_price" `
- AfterPrice string `json:"after_price" `
- BeforePlanetTotalValue string `json:"before_planet_total_value" `
- AfterPlanetTotalValue string `json:"after_planet_total_value" `
- CreateAt string `json:"create_at" `
- }
-
- type GetFundDataRecordListResp struct {
- List []FundDataRecordNode `json:"list"`
- Paginate Paginate `json:"paginate"`
- }
-
- type GetFundDataRecordDataListReq struct {
- Kind int `json:"kind"`
- StartAt string `json:"start_at"`
- EndAt string `json:"end_at"`
- Page int `json:"page"`
- Limit int `json:"limit"`
- }
-
- type AddFundDataReq struct {
- Kind int `json:"kind,required"`
- TotalAmount string `json:"total_amount,required"`
- Hours int `json:"hours,required"`
- Memo string `json:"memo" example:"备注"`
- Frequency int `json:"frequency"`
- }
|