entities

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment added in v0.0.2

type Attachment struct {
	ID        uint64    `json:"id"`
	TicketID  uint64    `json:"ticket_id"`
	Link      string    `json:"link"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type Category

type Category struct {
	ID   uint32 `json:"id"`
	Name string `json:"name"`
}

type CreateTicketDTO

type CreateTicketDTO struct {
	UserID      uint64   `json:"user_id"`
	CategoryID  uint32   `json:"category_id"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Price       float32  `json:"price"`
	Quantity    uint32   `json:"quantity"`
	TagIDs      []uint32 `json:"tag_ids,omitempty"`
	Attachments []string `json:"attachments,omitempty"`
}

type Master

type Master struct {
	ID        uint64    `json:"id"`
	UserID    uint64    `json:"userID"`
	Info      string    `json:"info"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type RawRespondToTicketDTO

type RawRespondToTicketDTO struct {
	TicketID uint64 `json:"ticket_id"`
	UserID   uint64 `json:"user_id"`
}

type Respond

type Respond struct {
	ID        uint64    `json:"id"`
	TicketID  uint64    `json:"ticket_id"`
	MasterID  uint64    `json:"master_id"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type RespondToTicketDTO

type RespondToTicketDTO struct {
	TicketID uint64 `json:"ticket_id"`
	MasterID uint64 `json:"master_id"`
}

type Tag

type Tag struct {
	ID   uint32 `json:"id"`
	Name string `json:"name"`
}

type Ticket

type Ticket struct {
	ID          uint64       `json:"id"`
	UserID      uint64       `json:"user_id"`
	CategoryID  uint32       `json:"category_id"`
	Name        string       `json:"name"`
	Description string       `json:"description"`
	Price       float32      `json:"price"`
	Quantity    uint32       `json:"quantity"`
	CreatedAt   time.Time    `json:"created_at"`
	UpdatedAt   time.Time    `json:"updated_at"`
	TagIDs      []uint32     `json:"tag_ids,omitempty"`
	Attachments []Attachment `json:"attachments,omitempty"`
}

Jump to

Keyboard shortcuts

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