service

package
v0.0.0-...-6163b3c Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order interface {
	Create(ctx context.Context, data *dto.TransactionReq) error
	FindManyByUserId(ctx context.Context, data *dto.GetOrdersByCurrentUserReq) (*entity.DataWithPaging[[]*entity.OrderWithProducts], error)
	FindMany(ctx context.Context, data *dto.GetOrdersReq) (*entity.DataWithPaging[[]*entity.OrderWithProducts], error)
	Cancel(ctx context.Context, data *dto.CancelOrderReq) error
	UpdateStatus(ctx context.Context, data *dto.UpdateStatusReq) error
	AddShippingId(ctx context.Context, data *dto.AddShippingIdReq) error
}

type Transaction

type Transaction interface {
	Create(ctx context.Context, data *dto.TransactionReq) (*dto.TransactionRes, error)
	HandleNotif(ctx context.Context, data *entity.Transaction) error
}

Jump to

Keyboard shortcuts

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