model

package
v0.0.0-...-655aaa2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMessage

type AddMessage struct {
	Author  string `json:"author"`
	Ticket  string `json:"ticket"`
	Content string `json:"content"`
}

type AddTicket

type AddTicket struct {
	Title       string `json:"title"`
	Owner       string `json:"owner"`
	Equipment   string `json:"equipment"`
	Description string `json:"description"`
}

type Login

type Login struct {
	ID      string `json:"_id" bson:"_id"`
	Status  bool   `json:"status"`
	Message string `json:"message"`
	User    *User  `json:"user"`
}

type Message

type Message struct {
	ID        string `json:"_id" bson:"_id"`
	Author    string `json:"author"`
	Ticket    string `json:"ticket"`
	Content   string `json:"content"`
	Timestamp string `json:"timestamp"`
}

type NewMessage

type NewMessage struct {
	Author    string `json:"author"`
	Ticket    string `json:"ticket"`
	Content   string `json:"content"`
	Timestamp string `json:"timestamp"`
}

type NewTicket

type NewTicket struct {
	Title       string `json:"title"`
	Owner       string `json:"owner"`
	Status      string `json:"status"`
	Technical   string `json:"technical"`
	Equipment   string `json:"equipment"`
	Description string `json:"description"`
	Timestamp   string `json:"timestamp"`
}

type NewTv

type NewTv struct {
	Type   string `json:"type"`
	Model  string `json:"model"`
	Brand  string `json:"brand"`
	Serial string `json:"serial"`
	Owner  string `json:"owner"`
}

type NewUser

type NewUser struct {
	Name     string `json:"name"`
	Address  string `json:"address"`
	Phone    string `json:"phone"`
	Password string `json:"password"`
	Email    string `json:"email"`
	Role     string `json:"role"`
}

type Ticket

type Ticket struct {
	ID          string `json:"_id" bson:"_id"`
	Title       string `json:"title"`
	Status      string `json:"status"`
	Equipment   string `json:"equipment"`
	Technical   string `json:"technical"`
	Timestamp   string `json:"timestamp"`
	Description string `json:"description"`
	Tv          *Tv    `json:"tv"`
}

type Tickets

type Tickets struct {
	ID          string `json:"_id" bson:"_id"`
	Title       string `json:"title"`
	Owner       string `json:"owner"`
	Status      string `json:"status"`
	Technical   string `json:"technical"`
	Equipment   string `json:"equipment"`
	Timestamp   string `json:"timestamp"`
	Description string `json:"description"`
}

type Tv

type Tv struct {
	ID     string `json:"_id" bson:"_id"`
	Type   string `json:"type"`
	Model  string `json:"model"`
	Brand  string `json:"brand"`
	Serial string `json:"serial"`
	Owner  string `json:"owner"`
	User   *User  `json:"user"`
}

type Tvs

type Tvs struct {
	ID     string `json:"_id" bson:"_id"`
	Type   string `json:"type"`
	Model  string `json:"model"`
	Brand  string `json:"brand"`
	Serial string `json:"serial"`
	Owner  string `json:"owner"`
}

type User

type User struct {
	ID      string `json:"_id" bson:"_id"`
	Name    string `json:"name"`
	Address string `json:"address"`
	Phone   string `json:"phone"`
	Email   string `json:"email"`
	Role    string `json:"role"`
}

type UserAuth

type UserAuth struct {
	ID       string `json:"_id" bson:"_id"`
	Name     string `json:"name"`
	Address  string `json:"address"`
	Phone    string `json:"phone"`
	Email    string `json:"email"`
	Role     string `json:"role"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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