82 lines
2.8 KiB
Go
82 lines
2.8 KiB
Go
package resource
|
||
|
||
const (
|
||
TypeAvatarFrame = "avatar_frame"
|
||
TypeProfileCard = "profile_card"
|
||
TypeCoin = "coin"
|
||
TypeVehicle = "vehicle"
|
||
TypeChatBubble = "chat_bubble"
|
||
TypeBadge = "badge"
|
||
TypeFloatingScreen = "floating_screen"
|
||
TypeGift = "gift"
|
||
TypeMicSeatIcon = "mic_seat_icon"
|
||
TypeMicSeatAnimation = "mic_seat_animation"
|
||
TypeEmojiPack = "emoji_pack"
|
||
// TypeVIPTrialCard 是可在背包中独立计时、单选佩戴的 VIP 体验卡。
|
||
// VIP 等级和有效期事实仍由 user_vip_trial_cards 保存,资源目录只负责素材和通用背包展示。
|
||
TypeVIPTrialCard = "vip_trial_card"
|
||
|
||
StatusActive = "active"
|
||
StatusDisabled = "disabled"
|
||
StatusDeleted = "deleted"
|
||
|
||
GrantStrategyWalletCredit = "wallet_credit"
|
||
GrantStrategyNewEntitlement = "new_entitlement"
|
||
GrantStrategyExtendExpiry = "extend_expiry"
|
||
GrantStrategyIncreaseQuantity = "increase_quantity"
|
||
GrantStrategySetActiveFlag = "set_active_flag"
|
||
|
||
GrantSubjectResource = "resource"
|
||
GrantSubjectGroup = "resource_group"
|
||
|
||
GrantSourceAdmin = "admin"
|
||
GrantSourceManagerCenter = "manager_center"
|
||
GrantSourceGrowthLevel = "growth_level"
|
||
GrantSourceAchievement = "achievement"
|
||
GrantSourceResourceShop = "resource_shop"
|
||
GrantSourceGameRobotInit = "game_robot_init"
|
||
// GrantSourceWheelReward 标识 activity-service 从转盘不可变结算快照发起的奖品发放。
|
||
// 历史兼容还必须满足固定 reason/command namespace、本人操作和 disabled grantable gift 等条件;source 本身不是授权开关。
|
||
GrantSourceWheelReward = "wheel_reward"
|
||
GrantStatusDone = "succeeded"
|
||
GrantStatusRevoked = "revoked"
|
||
ResultWalletCredit = "wallet_credit"
|
||
ResultEntitlement = "entitlement"
|
||
|
||
GroupItemTypeResource = "resource"
|
||
GroupItemTypeWalletAsset = "wallet_asset"
|
||
|
||
GiftTypeNormal = "normal"
|
||
GiftTypeCP = "cp"
|
||
GiftTypeLucky = "lucky"
|
||
GiftTypeSuperLucky = "super_lucky"
|
||
GiftTypeExclusive = "exclusive"
|
||
GiftTypeNoble = "noble"
|
||
GiftTypeFlag = "flag"
|
||
GiftTypeActivity = "activity"
|
||
GiftTypeMagic = "magic"
|
||
GiftTypeCustom = "custom"
|
||
|
||
GiftTypeTabKeyNormal = "Gift"
|
||
GiftTypeTabKeyCP = "CP"
|
||
GiftTypeTabKeyLucky = "Lucky"
|
||
GiftTypeTabKeySuperLucky = "Super Lucky"
|
||
GiftTypeTabKeyExclusive = "Exclusive"
|
||
GiftTypeTabKeyNoble = "Noble"
|
||
GiftTypeTabKeyFlag = "Flag"
|
||
GiftTypeTabKeyActivity = "Activity"
|
||
GiftTypeTabKeyMagic = "Magic"
|
||
GiftTypeTabKeyCustom = "Custom"
|
||
|
||
GiftEffectAnimation = "animation"
|
||
GiftEffectMusic = "music"
|
||
GiftEffectGlobalBroadcast = "global_broadcast"
|
||
|
||
PriceTypeCoin = "coin"
|
||
PriceTypeFree = "free"
|
||
|
||
ShopDurationOneDay int32 = 1
|
||
ShopDurationThreeDays int32 = 3
|
||
ShopDurationSevenDays int32 = 7
|
||
)
|