usecases

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonUseCases

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

func NewCommonUseCases

func NewCommonUseCases(
	ticketsService interfaces.TicketsService,
	respondsService interfaces.RespondsService,
) *CommonUseCases

func (*CommonUseCases) CreateTicket

func (useCases *CommonUseCases) CreateTicket(ctx context.Context, ticketData entities.CreateTicketDTO) (uint64, error)

func (*CommonUseCases) GetAllTickets

func (useCases *CommonUseCases) GetAllTickets(ctx context.Context) ([]entities.Ticket, error)

func (*CommonUseCases) GetRespondByID

func (useCases *CommonUseCases) GetRespondByID(ctx context.Context, id uint64) (*entities.Respond, error)

func (*CommonUseCases) GetTicketByID

func (useCases *CommonUseCases) GetTicketByID(ctx context.Context, id uint64) (*entities.Ticket, error)

func (*CommonUseCases) GetTicketResponds

func (useCases *CommonUseCases) GetTicketResponds(ctx context.Context, ticketID uint64) ([]entities.Respond, error)

func (*CommonUseCases) GetUserResponds

func (useCases *CommonUseCases) GetUserResponds(ctx context.Context, userID uint64) ([]entities.Respond, error)

func (*CommonUseCases) GetUserTickets

func (useCases *CommonUseCases) GetUserTickets(ctx context.Context, userID uint64) ([]entities.Ticket, error)

func (*CommonUseCases) RespondToTicket

func (useCases *CommonUseCases) RespondToTicket(
	ctx context.Context,
	respondData entities.RawRespondToTicketDTO,
) (uint64, error)

Jump to

Keyboard shortcuts

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