Documentation ¶
Index ¶
- type CreateTicketContentRequest
- type CreateTicketRequest
- type CreateTicketResponse
- type GetTicketRequest
- type GetTicketResponse
- type ISupportRepository
- type SupportController
- type SupportRepository
- func (sr SupportRepository) CreateTicket(ticket *Ticket) (*Ticket, error)
- func (sr SupportRepository) GetTicket(id string) (*Ticket, error)
- func (sr SupportRepository) GetTicketCount(filter interface{}) (int64, error)
- func (sr SupportRepository) GetTickets(filter interface{}, options *options.FindOptions) (*[]Ticket, error)
- func (sr SupportRepository) UpdateTicket(ticket *Ticket) (*Ticket, error)
- type Ticket
- type TicketContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTicketContentRequest ¶
type CreateTicketContentRequest struct { Content string TicketId string Attachments []attachment.Attachment }
type CreateTicketRequest ¶
type CreateTicketRequest struct { Title string Content string Attachments []attachment.Attachment }
type CreateTicketResponse ¶
type GetTicketRequest ¶
type GetTicketRequest struct {
Id string
}
type GetTicketResponse ¶
type GetTicketResponse struct { Id string Title string Status string TicketContents []TicketContent }
type ISupportRepository ¶
type SupportController ¶
type SupportController struct {
// contains filtered or unexported fields
}
func NewSupportController ¶
func NewSupportController(sr SupportRepository, auth auth.Auth, ar attachment.AttachmentRepository, ur user.UserRepository) SupportController
func (SupportController) CreateTicket ¶
func (sc SupportController) CreateTicket(c *gin.Context)
func (SupportController) CreateTicketContent ¶
func (sc SupportController) CreateTicketContent(c *gin.Context)
func (SupportController) GetTicket ¶
func (sc SupportController) GetTicket(c *gin.Context)
func (SupportController) GetTickets ¶
func (sc SupportController) GetTickets(c *gin.Context)
type SupportRepository ¶
func NewSupportRepository ¶
func NewSupportRepository(client *mongo.Client) SupportRepository
func (SupportRepository) CreateTicket ¶
func (sr SupportRepository) CreateTicket(ticket *Ticket) (*Ticket, error)
func (SupportRepository) GetTicket ¶
func (sr SupportRepository) GetTicket(id string) (*Ticket, error)
func (SupportRepository) GetTicketCount ¶
func (sr SupportRepository) GetTicketCount(filter interface{}) (int64, error)
func (SupportRepository) GetTickets ¶
func (sr SupportRepository) GetTickets(filter interface{}, options *options.FindOptions) (*[]Ticket, error)
func (SupportRepository) UpdateTicket ¶
func (sr SupportRepository) UpdateTicket(ticket *Ticket) (*Ticket, error)
type TicketContent ¶
type TicketContent struct { Id primitive.ObjectID Content string SenderId primitive.ObjectID Attachments []attachment.Attachment }
Click to show internal directories.
Click to hide internal directories.