order

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IBiz

type IBiz interface {
	// List serve caller to list all orders
	List(ctx contextx.Contextx, start, end int, user *user.Profile) (orders []*order.Info, err error)

	// GetByID serve caller to get an order info by id
	GetByID(ctx contextx.Contextx, id string, user *user.Profile) (info *order.Info, err error)

	// BookCar serve caller to book a car
	BookCar(ctx contextx.Contextx, id, projID string, user *user.Profile) (info *order.Booking, err error)

	// CancelBooking serve caller to cancel an order by order's id
	CancelBooking(ctx contextx.Contextx, id string, user *user.Profile) (err error)
}

IBiz declare order service function

func CreateIBiz

func CreateIBiz(logger *zap.Logger, repo2 repo.IRepo) (IBiz, error)

func NewImpl

func NewImpl(logger *zap.Logger, repo repo.IRepo) IBiz

NewImpl serve caller to create an IBiz

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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