Documentation ¶
Index ¶
- type CommonUseCases
- func (useCases *CommonUseCases) CreateTicket(ctx context.Context, ticketData entities.CreateTicketDTO) (uint64, error)
- func (useCases *CommonUseCases) GetAllTickets(ctx context.Context) ([]entities.Ticket, error)
- func (useCases *CommonUseCases) GetRespondByID(ctx context.Context, id uint64) (*entities.Respond, error)
- func (useCases *CommonUseCases) GetTicketByID(ctx context.Context, id uint64) (*entities.Ticket, error)
- func (useCases *CommonUseCases) GetTicketResponds(ctx context.Context, ticketID uint64) ([]entities.Respond, error)
- func (useCases *CommonUseCases) GetUserResponds(ctx context.Context, userID uint64) ([]entities.Respond, error)
- func (useCases *CommonUseCases) GetUserTickets(ctx context.Context, userID uint64) ([]entities.Ticket, error)
- func (useCases *CommonUseCases) RespondToTicket(ctx context.Context, respondData entities.RawRespondToTicketDTO) (uint64, error)
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 (*CommonUseCases) GetRespondByID ¶
func (*CommonUseCases) GetTicketByID ¶
func (*CommonUseCases) GetTicketResponds ¶
func (*CommonUseCases) GetUserResponds ¶
func (*CommonUseCases) GetUserTickets ¶
func (*CommonUseCases) RespondToTicket ¶
func (useCases *CommonUseCases) RespondToTicket( ctx context.Context, respondData entities.RawRespondToTicketDTO, ) (uint64, error)
Click to show internal directories.
Click to hide internal directories.