ticket

package
v0.0.0-...-2ad5e84 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID        = 0
	GID       = 1
	UID       = 2
	UpdateAll = 150
)

Variables

View Source
var WsUpgrader = websocket.Upgrader{
	ReadBufferSize:  1024,
	WriteBufferSize: 1024,
	CheckOrigin: func(r *http.Request) bool {
		return true
	},
}

Functions

This section is empty.

Types

type Chat

type Chat struct {
	Time     string `json:"time"`
	TicketID uint   `json:"ticket_id"`
	UserID   uint   `json:"user_id"`
	UserName string `json:"username"`
	Admin    bool   `json:"admin"`
	Data     string `json:"data"`
}

type Result

type Result struct {
	Ticket Ticket `json:"tickets"`
}

type ResultAdminAll

type ResultAdminAll struct {
	Tickets []core.Ticket `json:"tickets"`
}

type ResultAll

type ResultAll struct {
	Tickets []Ticket `json:"tickets"`
}

type ResultDatabase

type ResultDatabase struct {
	Err     error
	Tickets []core.Ticket
}

type ResultTicketAll

type ResultTicketAll struct {
	Tickets []Ticket `json:"tickets"`
}

type Ticket

type Ticket struct {
	ID       uint   `json:"id"`
	Time     string `json:"time"`
	GroupID  uint   `json:"group_id"`
	UserID   uint   `json:"user_id"`
	Chat     []Chat `json:"chat"`
	Solved   *bool  `json:"solved"`
	Title    string `json:"title"`
	UserName string `json:"username"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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