24 lines
668 B
Go
24 lines
668 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type Ticket struct {
|
|
ID string `json:"id"`
|
|
Source string `json:"source"`
|
|
ExternalID string `json:"external_id"`
|
|
Title string `json:"title"`
|
|
Status string `json:"status"`
|
|
OpenedAt *time.Time `json:"opened_at,omitempty"`
|
|
ClosedAt *time.Time `json:"closed_at,omitempty"`
|
|
URL *string `json:"url,omitempty"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type TicketLink struct {
|
|
ID string `json:"id"`
|
|
TicketID string `json:"ticket_id"`
|
|
MachineID string `json:"machine_id"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|