domain

package
v0.0.0-...-66b2d06 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineItem

type LineItem struct {
	ID         string  `json:"id"         bson:"_id"`
	MenuItemID int64   `json:"menuItemId" bson:"menuItemId"`
	OrderID    int64   `json:"orderId"    bson:"orderId"`
	Name       string  `json:"name"       bson:"name"`
	Price      float32 `json:"price"      bson:"price"`
	Quantity   int32   `json:"quantity"   bson:"quantity"`
}

func (LineItem) MarshalEasyJSON

func (v LineItem) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LineItem) MarshalJSON

func (v LineItem) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LineItem) UnmarshalEasyJSON

func (v *LineItem) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LineItem) UnmarshalJSON

func (v *LineItem) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Order

type Order struct {
	ID           string              `json:"id"           bson:"_id"`
	RestaurantID int64               `json:"restaurantId" bson:"restaurantId"`
	ConsumerID   int64               `json:"consumerId"   bson:"consumerId"`
	DeliveryID   int64               `json:"deliveryId"   bson:"deliveryId"`
	PaymentID    int64               `json:"paymentId"    bson:"paymentId"`
	StatusID     int32               `json:"statusId"     bson:"statusId"`
	CreatedAt    primitive.Timestamp `json:"createdAt"    bson:"createdAt"`
	UpdatedAt    primitive.Timestamp `json:"updatedAt"    bson:"updatedAt"`
}

func (Order) MarshalEasyJSON

func (v Order) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Order) MarshalJSON

func (v Order) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Order) UnmarshalEasyJSON

func (v *Order) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Order) UnmarshalJSON

func (v *Order) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type OrderList

type OrderList []Order

func (OrderList) MarshalEasyJSON

func (v OrderList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (OrderList) MarshalJSON

func (v OrderList) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*OrderList) UnmarshalEasyJSON

func (v *OrderList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*OrderList) UnmarshalJSON

func (v *OrderList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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