repository

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 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 TicketRepositoryImpl

type TicketRepositoryImpl struct {
	DB *sql.DB
}

Implement ticket repo

func NewTicketRepository

func NewTicketRepository(db *sql.DB) *TicketRepositoryImpl

func (*TicketRepositoryImpl) Create

func (*TicketRepositoryImpl) CreateTicketProduct

func (repo *TicketRepositoryImpl) CreateTicketProduct(ticketProd *dto.TicketProduct) error

func (*TicketRepositoryImpl) GetProductByTicketId

func (repo *TicketRepositoryImpl) GetProductByTicketId(id string) (*dto.TicketProduct, error)

func (*TicketRepositoryImpl) GetTicketById

func (repo *TicketRepositoryImpl) GetTicketById(id string) (*dto.GetTicketByIdDTO, error)

func (*TicketRepositoryImpl) UpdateAvailableQuantity

func (repo *TicketRepositoryImpl) UpdateAvailableQuantity(dto *dto.UpdateTicketAvailableQtyInputDTO) error

Jump to

Keyboard shortcuts

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