user

package
v0.0.0-...-fa7e930 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Achievement

type Achievement struct {
	Name        string  `json:"name"`
	Description string  `json:"description"`
	Level       uint    `json:"level"`
	Progress    float32 `json:"progress"`
}

type CartItem

type CartItem struct {
	Item          model.Item `json:"item"`
	NumberOfItems int        `json:"number_of_items"`
}

type CartItems

type CartItems struct {
	Items []CartItem `json:"items"`
}

type Order

type Order struct {
	Id           string       `json:"id"`
	Status       string       `json:"status"`
	Items        []model.Item `json:"items"`
	IsCancelable bool         `json:"is_cancelable"`
	OrderedAt    *time.Time   `json:"ordered_at"`
	ShippedAt    *time.Time   `json:"shipped_at"`
	DeliveredAt  *time.Time   `json:"delivered_at"`
	CanceledAt   *time.Time   `json:"canceled_at"`
}

type Orders

type Orders struct {
	Orders []Order `json:"orders"`
}

type Route

type Route struct {
	// contains filtered or unexported fields
}

func NewRoute

func NewRoute(getEarrings *usecase.GetEarrings) *Route

func (*Route) Apply

func (r *Route) Apply(g *gin.Engine)

type Status

type Status int
const (
	Confirmed Status = iota + 1
	Shipped
	Delivered
	Canceled
)

func (Status) String

func (s Status) String() string

type User

type User struct {
	Id          int64     `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	ImageUrl    string    `json:"image_url"`
	City        string    `json:"city"`
	Rank        uint8     `json:"rank"`
	CreatedAt   time.Time `json:"created_at"`
	Birthday    time.Time `json:"birthday"`
}

Jump to

Keyboard shortcuts

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