repository

package
v0.0.0-...-c8a774a Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderRepository

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

func NewOrderRepository

func NewOrderRepository(db *gorm.DB) *OrderRepository

func (*OrderRepository) CreateOrder

func (repo *OrderRepository) CreateOrder(ctx *gin.Context, order model.Order) (id int, err error)

func (*OrderRepository) ListOrder

func (repo *OrderRepository) ListOrder(ctx *gin.Context) (orders []dto.Order)

Jump to

Keyboard shortcuts

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