entities

package
v0.0.0-...-1cbff02 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	State    string `json:"state"`
	City     string `json:"city"`
	Street   string `json:"street"`
	District string `json:"district"`
	Cep      string `json:"cep"`
}

Address represents the address information of a duelist

type Contact

type Contact struct {
	Email string `json:"email"`
	Phone string `json:"phone"`
}

Contact represents the contact information of a duelist.

type Duelist

type Duelist struct {
	Id           string    `json:"id"`
	Name         string    `json:"name"`
	Presentation string    `json:"presentation"`
	BirthDate    time.Time `json:"birthDate"`
	Address      Address   `json:"address"`
	Contact      Contact   `json:"contact"`
}

Duelist represents a duelist entity

func NewDuelist

func NewDuelist() Duelist

NewDuelist creates a new Duelist instance with a generated UUID as the ID

Jump to

Keyboard shortcuts

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