Documentation ¶
Index ¶
- type CommonRespondsService
- func (service *CommonRespondsService) GetRespondByID(ctx context.Context, id uint64) (*entities.Respond, error)
- func (service *CommonRespondsService) GetTicketResponds(ctx context.Context, ticketID uint64) ([]entities.Respond, error)
- func (service *CommonRespondsService) GetUserResponds(ctx context.Context, userID uint64) ([]entities.Respond, error)
- func (service *CommonRespondsService) RespondToTicket(ctx context.Context, respondData entities.RawRespondToTicketDTO) (uint64, error)
- type CommonTicketsService
- func (service *CommonTicketsService) CreateTicket(ctx context.Context, ticketData entities.CreateTicketDTO) (uint64, error)
- func (service *CommonTicketsService) GetAllTickets(ctx context.Context) ([]entities.Ticket, error)
- func (service *CommonTicketsService) GetTicketByID(ctx context.Context, id uint64) (*entities.Ticket, error)
- func (service *CommonTicketsService) GetUserTickets(ctx context.Context, userID uint64) ([]entities.Ticket, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonRespondsService ¶
type CommonRespondsService struct {
// contains filtered or unexported fields
}
func NewCommonRespondsService ¶
func NewCommonRespondsService( respondsRepository interfaces.RespondsRepository, toysRepository interfaces.ToysRepository, logger *slog.Logger, ) *CommonRespondsService
func (*CommonRespondsService) GetRespondByID ¶
func (*CommonRespondsService) GetTicketResponds ¶
func (*CommonRespondsService) GetUserResponds ¶
func (*CommonRespondsService) RespondToTicket ¶
func (service *CommonRespondsService) RespondToTicket( ctx context.Context, respondData entities.RawRespondToTicketDTO, ) (uint64, error)
type CommonTicketsService ¶
type CommonTicketsService struct {
// contains filtered or unexported fields
}
func NewCommonTicketsService ¶
func NewCommonTicketsService( ticketsRepository interfaces.TicketsRepository, toysRepository interfaces.ToysRepository, logger *slog.Logger, ) *CommonTicketsService
func (*CommonTicketsService) CreateTicket ¶
func (service *CommonTicketsService) CreateTicket( ctx context.Context, ticketData entities.CreateTicketDTO, ) (uint64, error)
func (*CommonTicketsService) GetAllTickets ¶
func (*CommonTicketsService) GetTicketByID ¶
func (*CommonTicketsService) GetUserTickets ¶
Click to show internal directories.
Click to hide internal directories.