48 lines
1.3 KiB
Go
48 lines
1.3 KiB
Go
package consts
|
|
|
|
const (
|
|
EarnAllianceInviterId = "earn_alliance_inviter_id"
|
|
CarvIoInviterId = "carv_io_inviter_id"
|
|
KgenIoInviterId = "kgen_io_inviter_id"
|
|
Game7IoInviterId = "game7_io_inviter_id"
|
|
DailyPayConf = "daily_pay_conf"
|
|
NftStakeTaskDate = "nft_stake_task_date"
|
|
NftStakeTaskConf = "nft_stake_task_conf"
|
|
CarvApiKey = "carv_api_key"
|
|
Game7ApiKey = "game7_api_key"
|
|
KgenApiKey = "kgen_api_key"
|
|
AdminSecret = "admin_secret"
|
|
NftHolderApiConf = "nft_holder_api_conf"
|
|
TriballyApiKey = "tribally_api_key"
|
|
TriballyReportTime = "tribally_report_time"
|
|
)
|
|
|
|
type AssetType string
|
|
|
|
const (
|
|
AssetType_Points AssetType = "points"
|
|
AssetType_Keys AssetType = "keys"
|
|
AssetType_Castile AssetType = "castile"
|
|
AssetType_Elite_Points AssetType = "elite_points"
|
|
AssetType_Property AssetType = "property"
|
|
)
|
|
|
|
const (
|
|
RewardTypePoints = 0 // 积分
|
|
RewardTypeProperty = 1 // 道具
|
|
RewardCastile = 2 // 代币
|
|
)
|
|
|
|
func GetAssetType(rewardType int8) AssetType {
|
|
switch rewardType {
|
|
case RewardTypePoints:
|
|
return AssetType_Points
|
|
case RewardTypeProperty:
|
|
return AssetType_Property
|
|
case RewardCastile:
|
|
return AssetType_Castile
|
|
default:
|
|
return ""
|
|
}
|
|
}
|