domain

package
v0.0.0-...-b12e379 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Concert

type Concert struct {
	ID int64 `json:"id"`

	Title       string    `json:"title"`
	Description string    `json:"description"`
	Location    string    `json:"location"`
	AuthorID    uuid.UUID `json:"author-id"`
	CreateDate  time.Time `json:"create-date"`
	UpdateDate  time.Time `json:"update-date"`
}

type Ticket

type Ticket struct {
	ID                int64  `json:"id"`
	VerificationToken string `json:"verification-token"`

	ConcertID  int64     `json:"concert-id"`
	UserID     uuid.UUID `json:"user-id"`
	CreateDate time.Time `json:"create-date"`
	UpdateDate time.Time `json:"update-date"`
}

func (*Ticket) UpdateVerificationToken

func (ticket *Ticket) UpdateVerificationToken() error

type User

type User struct {
	ID uuid.UUID `json:"id"`

	Username   string    `json:"username"`
	Email      string    `json:"email"`
	FullName   string    `json:"full-name"`
	CreateDate time.Time `json:"create-date"`
	UpdateDate time.Time `json:"update-date"`
}

func ClaimsToUser

func ClaimsToUser(claims auth.Claims) User

Jump to

Keyboard shortcuts

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