cart

package
v0.0.0-...-657e486 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCartBiz

func ToCartBiz(in *shared.Cart, out *Cart)

func ToCartItemProto

func ToCartItemProto(in *CartItem, out *shared.CartItem)

func ToCartProto

func ToCartProto(in *Cart, out *shared.Cart)

Types

type Cart

type Cart struct {
	UserId string     `bson:"user_id" json:"user_id"`
	Items  []CartItem `bson:"items,omitempty" json:"items,omitempty"`
}

type CartItem

type CartItem struct {
	ProductId string `bson:"product_id" json:"product_id"`
	Quantity  int32  `bson:"quantity" json:"quantity"`
}

Jump to

Keyboard shortcuts

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