support

package
v0.0.0-...-dd062b7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Setup

func Setup()

Types

type AdminSupportOpenForm

type AdminSupportOpenForm struct {
	UserId  int    `schema:"user_id"`
	Name    string `schema:"name"`
	Message string `schema:"message"`
}

type AdminSupportOpenParams

type AdminSupportOpenParams struct {
	Frame lobster.FrameParams
	User  *lobster.User
	Token string
}

type AdminSupportParams

type AdminSupportParams struct {
	Frame   lobster.FrameParams
	Tickets []*Ticket
}

type AdminSupportTicketParams

type AdminSupportTicketParams struct {
	Frame  lobster.FrameParams
	Ticket *Ticket
	Token  string
}

type AdminSupportTicketReplyForm

type AdminSupportTicketReplyForm struct {
	Message string `schema:"message"`
}

type PanelSupportTicketParams

type PanelSupportTicketParams struct {
	Frame  lobster.FrameParams
	Ticket *Ticket
	Token  string
}

type SupportOpenForm

type SupportOpenForm struct {
	Name    string `schema:"name"`
	Message string `schema:"message"`
}

type SupportParams

type SupportParams struct {
	Frame   lobster.FrameParams
	Tickets []*Ticket
}

type SupportTicketReplyForm

type SupportTicketReplyForm struct {
	Message string `schema:"message"`
}

type Ticket

type Ticket struct {
	Id         int
	UserId     int
	Name       string
	Status     string
	Time       time.Time
	ModifyTime time.Time
	Messages   []*TicketMessage
}

func TicketDetails

func TicketDetails(userId int, ticketId int, staff bool) *Ticket

func TicketList

func TicketList(userId int) []*Ticket

func TicketListActive

func TicketListActive(userId int) []*Ticket

func TicketListAll

func TicketListAll() []*Ticket

type TicketMessage

type TicketMessage struct {
	Id      int
	Staff   bool
	Message string
	Time    time.Time
}

type TicketUpdateEmail

type TicketUpdateEmail struct {
	Id      int
	Subject string
	Message string
}

Jump to

Keyboard shortcuts

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