Documentation ¶
Index ¶
- type AuthorizeAccountDTO
- type GameDTO
- type GameRequirementsDTO
- type GetListMfaProviderDTO
- type LanguagesSupportDTO
- type LinkAccountDTO
- type LinkDTO
- type MediaDTO
- type MfaProviderDTO
- type PersonalInformationDTO
- type RegisterAccountDTO
- type RegisterSocialDTO
- type RequirementsDTO
- type SystemsDTO
- type UpdateAccountDTO
- type UpdateMultiFactorAuthDTO
- type UpdatePersonalDTO
- type UpdateUserDTO
- type UserAccountDTO
- type UserAddressDTO
- type UserDTO
- type UserMultiFactorDTO
- type UserSecurityDTO
- type UserSocialAccountDTO
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 LinkAccountDTO ¶
type LinkAccountDTO struct { }
type MfaProviderDTO ¶
type PersonalInformationDTO ¶
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 RequirementsDTO ¶
type SystemsDTO ¶
type SystemsDTO struct { Minimal RequirementsDTO `json:"minimal"` Recommended RequirementsDTO `json:"recommended"` }
type UpdateAccountDTO ¶
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 UserDTO ¶
type UserDTO struct { ID string `json:"id"` Personal PersonalInformationDTO `json:"personal"` Account UserAccountDTO `json:"account"` Security *UserSecurityDTO `json:"security"` }
type UserMultiFactorDTO ¶
type UserSecurityDTO ¶
type UserSecurityDTO struct {
MFA []UserMultiFactorDTO `json:"mfa"`
}
type UserSocialAccountDTO ¶
Click to show internal directories.
Click to hide internal directories.