shims

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	ActivityID int             `bun:",pk,autoincrement" json:"-"`
	Start      int64           `json:"start"`
	End        null.Int        `json:"end,omitempty" swaggertype:"integer"`
	LabelI18n  json.RawMessage `json:"label_i18n" swaggertype:"object"`
	Existence  json.RawMessage `json:"existence" swaggertype:"object"`
}

type DropInfo

type DropInfo struct {
	DropID     int             `bun:",pk,autoincrement" json:"-"`
	Server     string          `json:"-"`
	StageID    int             `json:"-"`
	ItemID     int             `json:"-"`
	ArkStageID string          `bun:"-" json:"-"`
	ArkItemID  string          `bun:"-" json:"itemId,omitempty"`
	DropType   string          `json:"dropType"`
	RangeID    int             `json:"-"`
	Bounds     json.RawMessage `json:"bounds" swaggertype:"object"`
	Extras     json.RawMessage `json:"-" swaggertype:"object"`

	Item      *Item             `bun:"rel:belongs-to,join:item_id=item_id" json:"-"`
	Stage     *Stage            `bun:"rel:belongs-to,join:stage_id=stage_id" json:"-"`
	TimeRange *models.TimeRange `bun:"rel:belongs-to,join:range_id=range_id" json:"-"`
}

type Item

type Item struct {
	ItemID      int             `bun:",pk,autoincrement" json:"-"`
	ArkItemID   string          `json:"itemId"`
	Name        string          `bun:"-" json:"name"`
	NameI18n    json.RawMessage `bun:"name" json:"name_i18n" swaggertype:"object"`
	Existence   json.RawMessage `json:"existence" swaggertype:"object"`
	ItemType    string          `bun:"column:type" json:"itemType"`
	SortID      int             `json:"sortId"`
	Rarity      int             `json:"rarity"`
	Group       null.String     `json:"groupID,omitempty" swaggertype:"string"`
	Sprite      null.String     `json:"-" swaggertype:"string"`
	SpriteCoord *[]int          `bun:"-" json:"spriteCoord,omitempty"`
	Keywords    json.RawMessage `json:"-" swaggertype:"object"`
	AliasMap    json.RawMessage `bun:"-" json:"alias,omitempty" swaggertype:"array,string"`
	PronMap     json.RawMessage `bun:"-" json:"pron,omitempty" swaggertype:"array,string"`
}

type Stage

type Stage struct {
	StageID         int             `bun:",pk,autoincrement" json:"-"`
	ArkStageID      string          `json:"stageId"`
	ZoneID          int             `json:"-"`
	ArkZoneID       string          `bun:"-" json:"zoneId"`
	StageType       string          `json:"stageType"`
	Code            string          `bun:"-" json:"code"`
	CodeI18n        json.RawMessage `bun:"code" json:"code_i18n" swaggertype:"object"`
	Sanity          null.Int        `json:"apCost" swaggertype:"integer"`
	Existence       json.RawMessage `json:"existence" swaggertype:"object"`
	MinClearTime    null.Int        `json:"minClearTime" swaggertype:"integer"`
	RecognitionOnly []string        `bun:"-" json:"recognitionOnly,omitempty"`

	Zone *models.Zone `bun:"rel:belongs-to,join:zone_id=zone_id" json:"-"`

	DropInfos []*DropInfo `bun:"rel:has-many,join:stage_id=stage_id" json:"dropInfos,omitempty"`
}

type Zone

type Zone struct {
	ZoneID       int             `bun:",pk,autoincrement" json:"-"`
	ArkZoneID    string          `json:"zoneId"`
	Index        int             `json:"zoneIndex"`
	Category     string          `json:"type"`
	Type         null.String     `json:"subType" swaggertype:"string"`
	ZoneName     string          `bun:"-" json:"zoneName"`
	ZoneNameI18n json.RawMessage `bun:"name" json:"zoneName_i18n" swaggertype:"object"`
	Existence    json.RawMessage `json:"existence" swaggertype:"object"`
	Background   null.String     `json:"background,omitempty" swaggertype:"string"`
	StageIds     []string        `bun:"-" json:"stages"`

	Stages []*models.Stage `bun:"rel:has-many,join:zone_id=zone_id" json:"-"`
}

Jump to

Keyboard shortcuts

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