use_case

package
v0.0.0-...-592584e Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderUseCase

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

func NewOrderUseCase

func NewOrderUseCase(orderService contract.OrderService, logger *slog.Logger) *OrderUseCase

func (*OrderUseCase) GetById

func (o *OrderUseCase) GetById(id int) (*entity.Order, error)

type PaymentUseCase

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

func (*PaymentUseCase) Create

func (p *PaymentUseCase) Create(ctx context.Context, payment *entity.Payment) error

func (*PaymentUseCase) CreateQRCode

func (*PaymentUseCase) GetLastPaymentStatus

func (p *PaymentUseCase) GetLastPaymentStatus(ctx context.Context, paymentId int) (enum.PaymentStatus, error)

func (*PaymentUseCase) PaymentNotification

func (p *PaymentUseCase) PaymentNotification(ctx context.Context, paymentId int) error

Jump to

Keyboard shortcuts

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