ddr_models

package
v0.0.0-...-f8dcc6b Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: AGPL-3.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Difficulty

type Difficulty int
const (
	Beginner Difficulty = iota
	Basic
	Difficult
	Expert
	Challenge
)

func StringToDifficulty

func StringToDifficulty(difficulty string) Difficulty

func (Difficulty) String

func (difficulty Difficulty) String() string

type Mode

type Mode int
const (
	Single Mode = iota
	Double
)

func StringToMode

func StringToMode(mode string) Mode

func (Mode) String

func (mode Mode) String() string

type Playcount

type Playcount struct {
	Playcount          int       `tag:"総プレー回数" gorm:"column:playcount"`
	LastPlayDate       time.Time `tag:"最終プレー日時" gorm:"column:last_play_date;primary_key"`
	SinglePlaycount    int       `tag:"プレー回数_single" gorm:"column:single_playcount"`
	SingleLastPlayDate time.Time `tag:"最終プレー日時_single" gorm:"column:last_single_play_date"`
	DoublePlaycount    int       `tag:"プレー回数_double" gorm:"column:double_playcount"`
	DoubleLastPlayDate time.Time `tag:"最終プレー日時_double" gorm:"column:last_double_play_date"`

	PlayerCode int `gorm:"column:player_code;primary_key"`
}

func (Playcount) Equals

func (p1 Playcount) Equals(p2 Playcount) bool

func (Playcount) TableName

func (Playcount) TableName() string

type PlayerDetails

type PlayerDetails struct {
	Code        int    `tag:"DDR-CODE" gorm:"column:code;primary_key"`
	Name        string `tag:"ダンサーネーム" gorm:"column:name"`
	Prefecture  string `tag:"所属都道府県" gorm:"column:location"`
	SingleRank  string `tag:"段位(SINGLE)" gorm:"column:single_rank"`
	DoubleRank  string `tag:"段位(DOUBLE)" gorm:"column:double_rank"`
	Affiliation string `tag:"所属クラス" gorm:"column:affiliation"`

	EaGateUser *string `gorm:"column:eagate_user"`
}

func (PlayerDetails) TableName

func (PlayerDetails) TableName() string

type Score

type Score struct {
	Score       int       `gorm:"column:score"`
	ClearStatus bool      `gorm:"column:cleared"`
	TimePlayed  time.Time `gorm:"column:time_played;primary_key"`

	SongId     string `gorm:"column:song_id;primary_key"`
	Mode       string `gorm:"column:mode;primary_key"`
	Difficulty string `gorm:"column:difficulty;primary_key"`

	PlayerCode int `gorm:"column:player_code;primary_key"`
}

func (Score) Equals

func (s1 Score) Equals(s2 Score) bool

func (Score) TableName

func (Score) TableName() string

type Song

type Song struct {
	Id     string `gorm:"column:id;primary_key"`
	Name   string `gorm:"column:name"`
	Artist string `gorm:"column:artist"`
	Image  string `gorm:"column:image"`
}

func (Song) TableName

func (Song) TableName() string

type SongDifficulty

type SongDifficulty struct {
	SongId          string `gorm:"column:song_id;primary_key"`
	Mode            string `gorm:"column:mode;primary_key"`
	Difficulty      string `gorm:"column:difficulty;primary_key"`
	DifficultyValue int16  `gorm:"column:difficulty_value"`
}

func (SongDifficulty) TableName

func (SongDifficulty) TableName() string

type SongStatistics

type SongStatistics struct {
	BestScore  int       `tag:"ハイスコア" gorm:"column:score_record"`
	Lamp       string    `tag:"フルコンボ種別" gorm:"column:clear_lamp"`
	Rank       string    `tag:"ハイスコア時のダンスレベル" gorm"column:rank"`
	PlayCount  int       `tag:"プレー回数" gorm:"column:playcount"`
	ClearCount int       `tag:"クリア回数" gorm:"column:clearcount"`
	MaxCombo   int       `tag:"最大コンボ数" gorm:"column:maxcombo"`
	LastPlayed time.Time `tag:"最終プレー時間" gorm:"column:lastplayed"`

	SongId     string `gorm:"column:song_id;primary_key"`
	Mode       string `gorm:"column:mode;primary_key"`
	Difficulty string `gorm:"column:difficulty;primary_key"`

	PlayerCode int `gorm:"column:player_code;primary_key"`
}

func (SongStatistics) Equals

func (s1 SongStatistics) Equals(s2 SongStatistics) bool

func (SongStatistics) TableName

func (SongStatistics) TableName() string

type WorkoutData

type WorkoutData struct {
	Date      time.Time `gorm:"column:date;primary_key"`
	PlayCount int       `gorm:"column:playcount"`
	Kcal      float32   `gorm:"column:kcal"`

	PlayerCode int `gorm:"column:player_code;primary_key"`
}

func (WorkoutData) Equals

func (w1 WorkoutData) Equals(w2 WorkoutData) bool

func (WorkoutData) TableName

func (WorkoutData) TableName() string

Jump to

Keyboard shortcuts

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