model

package
v0.0.0-...-6681e3d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Character

type Character struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Reality int    `json:"reality"`
}

type GachaConfig

type GachaConfig struct {
	Reality     int     `json:"reality"`
	Probability float64 `json:"probability"`
}

ガチャの設定

type GachaDrawRequest

type GachaDrawRequest struct {
	Count int `json:"count"`
}

type GroupedCharacters

type GroupedCharacters struct {
	Reality     int
	Probability float64
	IDs         []int
}

type User

type User struct {
	Id    int    `json:"id"`
	Name  string `json:"name"`
	Token string `json:"token"`
}

type UserCharacter

type UserCharacter struct {
	UserCharacterID int    `json:"id"`
	CharacterID     int    `json:"characterId"`
	CharacterName   string `json:"characterName"`
}

type UserCreateRequest

type UserCreateRequest struct {
	Name string `json:"name"`
}

type UserCreateResponse

type UserCreateResponse struct {
	Token string
}

type UserGetResponse

type UserGetResponse struct {
	Name string
}

type UserLoginRequest

type UserLoginRequest struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type UserPossessionCharacter

type UserPossessionCharacter struct {
	CharacterID      int    `json:"id"`
	CharacterReality int    `json:"reality"`
	CharacterName    string `json:"name"`
	CharacterCount   int    `json:"count"`
}

type UserUpdateRequest

type UserUpdateRequest struct {
	Name string
}

Jump to

Keyboard shortcuts

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