feat: now user can top up via redemption code (close #9)

This commit is contained in:
JustSong
2023-04-26 17:02:26 +08:00
parent e7a809b082
commit 9e2f2383b9
13 changed files with 886 additions and 14 deletions

View File

@@ -93,6 +93,12 @@ const (
TokenStatusExhausted = 4
)
const (
RedemptionCodeStatusEnabled = 1 // don't use 0, 0 is the default value!
RedemptionCodeStatusDisabled = 2 // also don't use 0
RedemptionCodeStatusUsed = 3 // also don't use 0
)
const (
ChannelStatusUnknown = 0
ChannelStatusEnabled = 1 // don't use 0, 0 is the default value!