model

package
v0.0.0-...-ecf8d90 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 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 ProfilePicture

type ProfilePicture struct {
	SuperheroID string `json:"superhero_id"`
	URL         string `json:"url"`
	Position    int64  `json:"position"`
	CreatedAt   string `json:"created_at"`
}

ProfilePicture holds profile picture data.

type Superhero

type Superhero struct {
	ID                    string           `json:"superhero_id"`
	Email                 string           `json:"email"`
	Name                  string           `json:"name"`
	SuperheroName         string           `json:"superhero_name"`
	MainProfilePicURL     string           `json:"main_profile_pic_url"`
	ProfilePictures       []ProfilePicture `json:"profile_pics"`
	Gender                int              `json:"gender"`
	LookingForGender      int              `json:"looking_for_gender"`
	Age                   int              `json:"age"`
	LookingForAgeMin      int              `json:"looking_for_age_min"`
	LookingForAgeMax      int              `json:"looking_for_age_max"`
	LookingForDistanceMax int              `json:"looking_for_distance_max"`
	DistanceUnit          string           `json:"distance_unit"`
	Location              elastic.GeoPoint `json:"location"`
	Birthday              string           `json:"birthday"`
	Country               string           `json:"country"`
	City                  string           `json:"city"`
	SuperPower            string           `json:"superpower"`
	AccountType           string           `json:"account_type"`
	IsDeleted             bool             `json:"is_deleted"`
	DeletedAt             *string          `json:"deleted_at"`
	IsBlocked             bool             `json:"is_blocked"`
	BlockedAt             *string          `json:"blocked_at"`
	UpdatedAt             string           `json:"updated_at"`
	CreatedAt             string           `json:"created_at"`
}

Jump to

Keyboard shortcuts

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