gacha

package
v0.0.0-...-013fab3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Log

type Log struct {
	ID        string `json:"id"`         // 记录 ID
	UID       string `json:"uid"`        // 用户 ID
	GachaType string `json:"gacha_type"` // 卡池类型
	Name      string `json:"name"`       // 物品名称
	ItemID    string `json:"item_id"`    // 物品 ID
	ItemType  string `json:"item_type"`  // 物品类型
	RankType  string `json:"rank_type"`  // 稀有度
	Count     string `json:"count"`      // 物品数量
	Time      string `json:"time"`       // 时间
	Lang      string `json:"lang"`       // 语言
}

Log 表示抽卡记录

func (Log) ParseTime

func (log Log) ParseTime() (time.Time, error)

func (Log) SharedWishType

func (log Log) SharedWishType() Type

type Type

type Type = string
const (
	NoviceWishes        Type = "100" // 新手祈愿
	PermanentWish       Type = "200" // 常驻祈愿
	CharacterEventWish  Type = "301" // 角色活动祈愿
	WeaponEventWish     Type = "302" // 武器活动祈愿
	CharacterEventWish2 Type = "400" // 角色活动祈愿-2
	ChronicledWish      Type = "500" // 集录祈愿
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL