order

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusInit       = domain.StatusInit
	StatusProcessing = domain.StatusProcessing
	StatusSuccess    = domain.StatusSuccess
	StatusFailed     = domain.StatusFailed
)

Variables

This section is empty.

Functions

func InitHandler

func InitHandler(cache ecache.Cache, svc2 service.Service, pm *payment.Module, ppm *product.Module, cm *credit.Module) *web.Handler

func InitService added in v0.1.0

func InitService(db *gorm.DB) service.Service

Types

type CloseTimeoutOrdersJob added in v0.1.0

type CloseTimeoutOrdersJob = job.CloseTimeoutOrdersJob

type Handler

type Handler = web.Handler

type Item added in v0.1.0

type Item = domain.OrderItem

type Module added in v0.1.0

type Module struct {
	Hdl *Handler

	Svc                   Service
	CloseTimeoutOrdersJob *CloseTimeoutOrdersJob
	// contains filtered or unexported fields
}

func InitModule added in v0.1.0

func InitModule(db *gorm.DB, cache ecache.Cache, q mq.MQ, pm *payment.Module, ppm *product.Module, cm *credit.Module) (*Module, error)

type Order added in v0.1.0

type Order = domain.Order

type Payment added in v0.1.0

type Payment = domain.Payment

type SKU added in v0.1.0

type SKU = domain.SKU

type SPU added in v0.1.0

type SPU = domain.SPU

type Service added in v0.1.0

type Service = service.Service

type Status added in v0.1.0

type Status = domain.OrderStatus

Directories

Path Synopsis
internal
event/mocks
Code generated by MockGen.
Code generated by MockGen.
job
web
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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