order

package
v0.0.0-...-ed7ba4f Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package order : Order service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store : Order store

func NewStore

func NewStore(db *sql.DB) *Store

NewStore creates a new order store

func (*Store) CreateOrder

func (s *Store) CreateOrder(o types.Order) (int, error)

CreateOrder creates a new order

func (*Store) CreateOrderItem

func (s *Store) CreateOrderItem(oi types.OrderItem) error

CreateOrderItem creates a new order item

Jump to

Keyboard shortcuts

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