25 lines
458 B
Go
25 lines
458 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Status struct {
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
const (
|
|
Open string = "open"
|
|
InProgress string = "in_progress"
|
|
Closed string = "closed"
|
|
)
|
|
|
|
type Ticket struct {
|
|
Id int `json:"id"`
|
|
Title string `json:"title"`
|
|
Description string `json:"description"`
|
|
Status string `json:"status"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|