From 9f2b810fd341ee3eb29b1bae65f27b7406fa473d Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 21 Jun 2022 01:25:47 +0800 Subject: [PATCH] reformat go code --- pkg/exchange/binance/reward.go | 2 +- pkg/types/reward.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/exchange/binance/reward.go b/pkg/exchange/binance/reward.go index ae52af638..8bf3dfdcf 100644 --- a/pkg/exchange/binance/reward.go +++ b/pkg/exchange/binance/reward.go @@ -27,7 +27,7 @@ func (e *Exchange) QueryRewards(ctx context.Context, startTime time.Time) ([]typ case binanceapi.RebateTypeCommission: // use the default type } - + rewards = append(rewards, types.Reward{ UUID: strconv.FormatInt(entry.UpdateTime.Time().UnixMilli(), 10), Exchange: types.ExchangeBinance, diff --git a/pkg/types/reward.go b/pkg/types/reward.go index a093dd4ac..307486d15 100644 --- a/pkg/types/reward.go +++ b/pkg/types/reward.go @@ -10,13 +10,13 @@ import ( type RewardType string const ( - RewardAirdrop = RewardType("airdrop") - RewardCommission = RewardType("commission") + RewardAirdrop = RewardType("airdrop") + RewardCommission = RewardType("commission") RewardReferralKickback = RewardType("referral_kickback") - RewardHolding = RewardType("holding") - RewardMining = RewardType("mining") - RewardTrading = RewardType("trading") - RewardVipRebate = RewardType("vip_rebate") + RewardHolding = RewardType("holding") + RewardMining = RewardType("mining") + RewardTrading = RewardType("trading") + RewardVipRebate = RewardType("vip_rebate") ) type Reward struct {