dto

package
v0.0.0-...-e1e7ebf Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizeAccountDTO

type AuthorizeAccountDTO struct {
	Social *RegisterSocialDTO `json:"social"`
}

type GameDTO

type GameDTO struct {
	Name         string              `json:"name"`
	Preview      string              `json:"preview"`
	Title        string              `json:"title"`
	Rating       float32             `json:"rating"`
	Price        float32             `json:"price"`
	Description  string              `json:"description"`
	Platforms    []string            `json:"platforms"`
	Tags         []LinkDTO           `json:"tags"`
	Genres       []LinkDTO           `json:"genres"`
	ReleaseDate  string              `json:"releaseDate"`
	Developer    LinkDTO             `json:"developer"`
	Publisher    LinkDTO             `json:"publisher"`
	Requirements GameRequirementsDTO `json:"requirements"`
	Media        MediaDTO            `json:"media"`
}

type GameRequirementsDTO

type GameRequirementsDTO struct {
	Languages LanguagesSupportDTO   `json:"languages"`
	Systems   map[string]SystemsDTO `json:"systems"`
}

type GetListMfaProviderDTO

type GetListMfaProviderDTO struct {
	ClientId string `json:"client_id" form:"client_id"`
}

type LanguagesSupportDTO

type LanguagesSupportDTO struct {
	Audio []string `json:"audio"`
	Text  []string `json:"text"`
}

type LinkAccountDTO

type LinkAccountDTO struct {
}

type LinkDTO

type LinkDTO struct {
	Title string `json:"title"`
	Id    string `json:"id"`
}

type MediaDTO

type MediaDTO struct {
	Screenshots []string `json:"screenshots"`
	Trailers    []string `json:"trailers"`
}

type MfaProviderDTO

type MfaProviderDTO struct {
	// ID is the id of provider.
	ID string `json:"id"`

	// AppID is the id of the application.
	AppID string `json:"app_id"`

	// Name is a human-readable name of provider.
	Name string `json:"name"`
}

type PersonalInformationDTO

type PersonalInformationDTO struct {
	Email     string         `json:"email"`
	FirstName string         `json:"first_name"`
	LastName  string         `json:"last_name"`
	BirthDate *time.Time     `json:"birth_date"`
	Address   UserAddressDTO `json:"address"`
}

type RegisterAccountDTO

type RegisterAccountDTO struct {
	Email     string             `json:"email" validate:"required,email,max=254"`
	Nickname  string             `json:"nickname" validate:"max=50"`
	Birthdate *time.Time         `json:"birthdate"`
	Social    *RegisterSocialDTO `json:"social"`
}

type RegisterSocialDTO

type RegisterSocialDTO struct {
	Provider string `json:"provider" validate:"max=254"`
	Token    string `json:"token" validate:"max=254"`
	Id       string `json:"id" validate:"max=254"`
}

type RequirementsDTO

type RequirementsDTO struct {
	OS        string `json:"os"`
	CPU       string `json:"cpu"`
	RAM       string `json:"ram"`
	GPU       string `json:"gpu"`
	DiskSpace string `json:"disk_space"`
}

type SystemsDTO

type SystemsDTO struct {
	Minimal     RequirementsDTO `json:"minimal"`
	Recommended RequirementsDTO `json:"recommended"`
}

type UpdateAccountDTO

type UpdateAccountDTO struct {
	Nickname            string   `json:"nickname" validate:"max=50"`
	PrimaryLanguage     string   `json:"primary_language"`
	AdditionalLanguages []string `json:"additional_languages"`
}

type UpdateMultiFactorAuthDTO

type UpdateMultiFactorAuthDTO struct {
	ProviderName string
	ProviderId   string
}

type UpdatePersonalDTO

type UpdatePersonalDTO struct {
	FirstName string         `json:"first_name" validate:"max=50"`
	LastName  string         `json:"last_name" validate:"max=50"`
	BirthDate *time.Time     `json:"birth_date"`
	Address   UserAddressDTO `json:"address" validate:"max=254"`
}

type UpdateUserDTO

type UpdateUserDTO struct {
	Personal UpdatePersonalDTO `json:"personal"`
	Account  UpdateAccountDTO  `json:"account"`
}

type UserAccountDTO

type UserAccountDTO struct {
	Nickname            string                 `json:"nickname"`
	PrimaryLanguage     string                 `json:"primary_language"`
	AdditionalLanguages []string               `json:"additional_languages"`
	Socials             []UserSocialAccountDTO `json:"socials"`
}

type UserAddressDTO

type UserAddressDTO struct {
	Country    string `json:"country"`
	City       string `json:"city"`
	PostalCode string `json:"postal_code"`
	Region     string `json:"region"`
	Line1      string `json:"line_1"`
	Line2      string `json:"line_2"`
}

type UserDTO

type UserDTO struct {
	ID       string                 `json:"id"`
	Personal PersonalInformationDTO `json:"personal"`
	Account  UserAccountDTO         `json:"account"`
	Security *UserSecurityDTO       `json:"security"`
}

type UserMultiFactorDTO

type UserMultiFactorDTO struct {
	ProviderId   string `json:"provider_id"`
	ProviderName string `json:"provider_name"`
}

type UserSecurityDTO

type UserSecurityDTO struct {
	MFA []UserMultiFactorDTO `json:"mfa"`
}

type UserSocialAccountDTO

type UserSocialAccountDTO struct {
	Provider string `json:"provider"` // Facebook, twitter, Vk, etc.
	ID       string `json:"id"`
}

Jump to

Keyboard shortcuts

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